/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 take your time to write down the steps you used to solve your problem in the original post. You can potentially help others having the same problem!

How To Ask Questions The Smart Way


If your question has been answered, please mark your thread as [Resolved], use the flair drop-down on your submission to do so!

/r/linuxquestions

257,582 Subscribers

0

Quick Arch Linux install Guide using archinstall script.

hello
i took the time to write how i install arch linux using the archinstall script and manually partitioning

i wanted to make a deaf friendly video but it's going to take some time so

this is how i do it and it works for me c:
README.md

0 Comments
2024/05/01
02:58 UTC

1

Questions from someone wanting to move from Windows

Hey there. Thanks to my recent use of the Steam Deck, I've been playing around with the idea of using Linux as a new OS over Windows. I'm very new to the Linux space, but I use a large suite of software types as well as play all kinds of games and one of my main concerns is compatibility.

I use many pieces of software like Photoshop, Davinci Resolve, OBS, Blender, etc.

I play tons of games like GC titles (emulated), GTAV, Helldivers 2, Persona 5, Stardew Valley, etc.

When it comes to running a large variety of software/games on Linux, should I be worried? If some aren't compatible, can I just install a program that makes them run?

3 Comments
2024/05/01
02:11 UTC

2

Why goes gnome hate my computer?

I've tried fedora 39, fedora 40, and Ubuntu 24.04 gnome editions and all of them have intermittent freezing requiring a reboot. Kde and cinnamon work fine on my computer, but it just does not get along with gnome at all. I have a AMD CPU with integrated graphics. Is there a known problem with that and gnome? I'd run Fedora kde but it doesn't have good pen tablet support because of Wayland on kde.

Specs 500gb SSD, 16gb 3200 ram. Dual monitor setup. It's a ryzen 5 3400ge.

2 Comments
2024/05/01
01:38 UTC

1

lm_sensors iTE 8689e not found

Just want to ask if there is a fix for lm_sensors with the Super i/o chip iTE 8689e chip which is not supported. I barely got it to work with the it8628 sensor. I still can't change fan speeds etc.

So is there a solution for this?

0 Comments
2024/05/01
01:37 UTC

1

Help installing scripts into gpu screen recorder

Hey yall, I'm VERY new to linux (<1 week) and I got gpu screen recorder set up and running to record my games. The thing is, I'm having a hard time trying to install some of the scripts that are listed on the application's website that would make the program a lot better. see here: https://git.dec05eba.com/gpu-screen-recorder/tree/scripts

Frankly, I'm not sure how to get these script files to communicate properly with the application, and after hours of trying to research it I keep coming up blank. If anyone is able to point me in the right direction a bit and help me learn, that would be very much appreciated.

0 Comments
2024/05/01
01:06 UTC

1

Restarting my Linux journey

Ok so I started my Linux journey with Mint back in like 2009 when I bought a 3 pack Linux distro combo from eBay.

Fast forward to me using Ubuntu for about 5 years, before I had to put aside my tech hobby around 2015.

Now fast forward to this week where I have been doing more research on distros for an install on my asus X540l (I got it for free so don’t judge). Currently I am stuck between too many options of course but have limited my selections down to a few.

Option 1- Ubuntu, they just released a new stable version very recently

Option 2- Nobara, but I mainly will be just running emulation and am not well versed in really anything other than Ubuntu.

Option 3- Mint, but what’s the point in running mint if I’m already used to Ubuntu?

Option 4- Pop os, just seems al ittle too basic

Option 5- Debian, I have always been interested in Debian… it’s just there website makes me want to kick a child.

So if anyone could me even just narrow down my choices or give me some insight to help me make a decision that would be great 👍

Thanks for the future help!

3 Comments
2024/05/01
00:43 UTC

3

(Genuine Question) Why is Linux all of the sudden so easy and nice to me?

So around late October - early November after several Windows updates broke my boot-loader (Has this happened to anyone before???). I decided I would try out Linux for the first time, I made several backups in case anything went wrong during the process. I decided to turn off Windows Update altogether and made sure to prevent another boot breaking update and then set up a dual boot with Linux Mint. So the first 20 minutes with Linux went smooth so I decided I would try to set up some of my applications using wine, proton and more.

Everything went wrong, I mean everything. The installation of wine broke so many times I had to keep reseting Linux, I tried installing it from software manager but nope. It just broke during the middle of the install. And I tried searching everywhere for answers but it is either a deleted post or someone getting harrased. I tried to set up proton instead but steam just did not want to work, it would not open and when it did it would just be stuck on updating. And I did not even know what to do with Lutris.

I then decided Linux Mint may not be the best choice, so there began the distrohopping. I tried fedora, zorin, debian, solus, ubuntu, opensuse and I mean I explored every distro possible to no avail. Either the distro would break during a terminal command and have some unfixable (by unfixable I mean not even a guide says anything to help) or just flat out not boot at all. So I eventually just returned to Windows.

Months later after Micro$oft decided it would be a great idea to force us with AI and all that other bloat I decided to give Linux another chance.

Note: I have done major hardware changes the last months, could that be the reason?

And when I did try again with Linux Mint, everything went... perfectly.. (I did change to Zorin a day later because I was not a big fan of Linux Mint's UI. Same thing, everything went right.)

Why is nothing breaking anymore?

38 Comments
2024/05/01
00:18 UTC

1

Why can't I install package using apt after abruptly closing a package installation?

I have no idea, why linux completely crashes after I abruptly cancel a package installation because it gets stuck and doesn't proceed.
I was using "sudo apt upgrade" to upgrade my packages and it got stuck at

Setting up libc6:amd64 (2.37-15) 

I quit the whole upgrade with Ctrl + C and the next time I try to install any package it says:

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 227

While I fixed it for now with --> kill 227 and reconfiguring dpkg, why the heck does it even happen in the first place ? Is it just how linux works and I am not supposed to cancel a package update ? How does this work ?

1 Comment
2024/04/30
23:57 UTC

1

Preinstalled Dual boot, external ssd?

Dose anyone know where to buy a external ssd that comes with linux preinstalled for dual booting? I have no access to a usb and do not want to set it up myself however I would like to dual boot linux and learn linux, so I was hoping that I could by an external ssd that just has linux set up

1 Comment
2024/04/30
23:56 UTC

1

CPU Power consumption

Hey guys,
just switch from Windows to Zorin OS. So I have the problem that Corectrl is not working. I can't change settings etc. I guess this is connected with the missing power consumption seonsor for my cpu. Tried it with every programm I found but this sensor does not show up.

CPU: Ryzen 5 7600 X
Mainboard: Gigabyte B650 eagly x

Andy ideas?

0 Comments
2024/04/30
23:30 UTC

1

New Blind Linux User Hoping for Some Help

0 Comments
2024/04/30
23:06 UTC

1

Issue with application in wayland, force X11

Hello,

I am having troubles, with an application that it was running correctly in X11, nevertheless now that I migrated to wayland, it is giving me some issues.
when I try to run the application salome
I am getting the following error:

X Error of failed request:  BadWindow (invalid Window parameter)
 Major opcode of failed request:  3 (X_GetWindowAttributes)
 Resource id in failed request:  0xe
 Serial number of failed request:  10
 Current serial number in output stream:  11

up to my understanding and what I read around, it should use automatically xwayland and it is supposed to work, but I am getting this problem. also from reading around I tried `unset $WAYLAND_DISPLAY` but it didn't change the result. any help would be appreciated :)

thanks in advance

1 Comment
2024/04/30
23:00 UTC

1

ZFS - Cache, What does it do as specific as possible? What are the size ratios compared to the zpool that you are cacheing?

This is it, I have 16TB zpool and want a cache to increase performance. I have a 1tb nvme ssd, and a 128 gb optane nvme ssd, Which would be better and specifcally and simply, why? Thanks a lot.

7 Comments
2024/04/30
22:43 UTC

0

UFW firewall: allow all

I am hosting a website on an Ubuntu system and wish to use UFW to drop traffic from blacklisted IP addresses but allow incoming traffic from all other IP addresses. I believe this can be done with a configuration that first lists IP addresses from which incoming traffic is to be dropped and then allows incoming traffic from all. However, I am only willing to try this if running an instance of UFW set to allow all incoming traffic is no less safe than having no firewall activated. So is this the case? Is there a better way to achieve what I want? I do not wish, initially at least, to ban all incoming traffic and have to explicitly list all exceptions.

1 Comment
2024/04/30
21:16 UTC

0

Just downloaded linux and theres over 400GB of unexplained storage

This is my first time changing OS and the system monitor program shows i have used 490GB of storage. This is definitely the data I had on windows 11, but I don't know how to access it (especially since I'm pretty sure I didn't create a seperate partition for ubuntu)

I don't really know how to word the title because I don't know if I'm looking to retrieve the data or free up space.

Does anyone know what to do here? Sorry if its not explained well

2 Comments
2024/04/30
21:03 UTC

1

Why do I need to reinstall nvm and node every time I restart my machine?

After I restart my machine, the nvm -v and node -v commands return zsh: command not found: nvm

How can I set this up so that nodejs just works without needing to reinstall every session?

10 Comments
2024/04/30
21:02 UTC

1

Why is my Windows boot loader on my Linux Drive?

I’ve been using Linux and Windows on separate drives for a while now and they’ve always been labeled in accordance with their drive name in the UEFI boot menu. The issue happens when I need to reinstall my Linux distro. I installed OpenSuse and it somehow deleted my windows boot partition but kept my data. I didn’t know how to fix this so I reinstalled windows. But when I reinstalled windows it genuinely put the boot drive on the Linux drive. It had zero reason to do this as I specified which drive it should be on. Any help appreciated, thanks :)

1 Comment
2024/04/30
20:59 UTC

1

Giving Linux Gaming a Try

I was a hobbyist with Linux back in High School/College. Heck, I threw Ubuntu on my old iBook and took that thing to class. Found a way to make OpenOffice save in .docx format and told MS office to get bent.

I played games like Battle for Wesnoth and had a great time.

Then I stopped because... Reasons? I don't know. I got a new computer and it came with Windows 7 and I just didn't go back.

Now I'm thinking of giving it another shot with all the new stuff like Proton. It got back on my radar with the whole Game Guard drama. All of my games are on an external drive, and all the important documents are backed up on my Google Drive, so I was thinking of dual booting because, why not?

I'm not nearly as tech savvy as I once was, but I hope I can just point my Linux to the external drive for game installs once I get steam up and running. I have a few games outside of steam, so I'm going to read up on Wine and see what's up. They are also on the E drive.

I know I've got a few options for distros. Ubuntu is officially supported by Steam, but it's more "commercial" than other distros. Doubt it will matter much, but it's fact. Linux Mint and vanilla Debian also exist. Nobara also can up when searching.

I'm not afraid to go get what I want, so "gaming distros" aren't a must since you can generally make your OS what you want.

I'm just looking for some tips on where to start. My main concern is my Nvidia GPU.

4 Comments
2024/04/30
20:46 UTC

2

Can both OS access another section of a partitioned drive in dual boot setup ? Will it become a shared drive ?

My laptop has a 2 drives, (C drive) 250 GB SSD with Windows installed on it and (D drive) 1 TB HDD.

I plan to partition the 1 TB drive and install Ubuntu in the new partition (E drive). I want to know what will happen to the original partitioned drive (D drive) containing my files ? Can Windows and Ubuntu both access the files stored in this drive ? Or will Ubuntu only show me the files on the partition it is installed on ?

Since C and E drives will have OS installed on them, I wanted to know if I can access the drive of another OS while booted in one. Eg: Booting into Windows and being able to open E drive with Linux installed on it and vice versa.

5 Comments
2024/04/30
20:35 UTC

2

Extreme Discouragement.

I am in a (intro to Linux) course for school, and i was already struggling trying to absorb knowledge. I'm 7/8 weeks in and i've hit the Networking chapter and holy moly... The first thing they threw at me was Subnet mask and VLSM. I can't figure out how get the damn masks, spent like 2 hours trying to figure it out and gave up because of the amount of modules i have to complete in a week. It's day 2 of the chapter and i am so lost.. I have no fucking idea what is happening anymore.

Is this even for me? i'm scared to fail this course, otherwise i'd have to pay back the grant i got. Did anyone else struggle with this or am i just slow at learning this?
I really really wanted this, but idk anymore, i am extremely discouraged and depressed.

5 Comments
2024/04/30
20:33 UTC

3

How can I force all outbound traffic to use a proxy?

Just like the title says: How can I force ALL out-bound traffic (both TCP and UDP) to use a proxy?

I am very well aware I can configure the system-wide environment variable; and set the variable in the D/E (desktop environment) but there are Plenty of programs/utilities/games/etc that DO NOT "respect" these values. STEAM (afaik) is actually a perfect example of this as I also don't think Steam has it's own proxy settings either! When I Need my outbound traffic to 'respect' a proxy, those that do not have their own settings and also do not respect the system variables, NEED to be FORCED to do so ~ that is what I am asking, How do I do that?

There is a program/utility that does this for Winblows ~ it's called ProxyCap (and yes, sadly, it is not available for Linux). It works 100% for forcing ALL outbound traffic to use a proxy (TCP and UDP)! I know more people seem to know about Proxifier, but that one actually does NOT "forward" UDP ~ and ProxyCap DOES! (unless proxifier does now too, it didn't last time I looked).

12 Comments
2024/04/30
20:29 UTC

5

Any CGI programs from 1990-2001 that can run on Linux?

Getting into the early CGI look, using Blender and addons to explore the style atm but wanna try to explore some old programs, however I'm limited to Linux or web based programs. Curious if anyone knows any or can redirect me to a better place to ask?

7 Comments
2024/04/30
19:57 UTC

1

Struggling with /etc/resolv.conf

Sorry if I'd rather have posted this in the Arch Linux subreddit but for some reason that I can't understand I have been banned/blocked there.

I am using openvpn on Arch and I noticed that I was having a DNS leak. So I followed this Arch wiki page and installed vpnfailsafe. The package successfully updated the /etc/resolv.conf and fixed the leak but, at the following reboot, the file was overwritten, looking exactly as before.

By the way am not using NetworkManager or dhcpd, but just dhclient and wpa_supplicant.

I searched for solutions and found a few ones, the most elegant one being an enter hook script from the Debian wiki:

echo 'make_resolv_conf() { :; }' > /etc/dhcp/dhclient-enter-hooks.d/leave_my_resolv_conf_alone
chmod 755 /etc/dhcp/dhclient-enter-hooks.d/leave_my_resolv_conf_alone

Apart from the fact that I didn't have a dhclient-enter-hooks.d folder and I had to create it, this solution worked, weirdly, only after ONE reboot. Also, I don't even know if it's suitable for Arch.

The only effective option was the ugly, dirty and, possibly, even harmful one, that is making the file immutable:

chattr +i /etc/resolv.conf

Any suggestion for a clean workaround? TIA-

0 Comments
2024/04/30
19:21 UTC

1

Are there any iMazing/iTunes alternatives for Linux? That work with IOS 17

Operating system: Linux mint

1 Comment
2024/04/30
19:19 UTC

0

Unable to clone github repo into any folder but the root of the linux file system

Hello,

I set up a github access token and linked it to my account on Github. I know the SSH key works because if I run:

ssh -T git@github.com

I get the response

Hi myname! You've successfully authenticated, but GitHub does not provide shell access.

If i then go to the root of the file system

cd ~

And run

sudo git clone git@github.com:myname/cba-frontend.git

It works with no problems. However, If I instead try to clone the repo into a directory

sudo git clone git@github.com:myname/cba-frontend.git /tmp/cba-frontend

I get the error

Cloning into '/tmp/cba-frontend'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I am astonished. I it doesn't allow mw to move the cloned repo into the tmp folder either via the mv command. No matter what folder I try to put files into, I get permission denied.

3 Comments
2024/04/30
18:59 UTC

6

Replace shell scripts with a real programming language? Language recommendations

Is it worthwhile to re-implement shell scripts with a real programming language, e.g. for extensibility, performance benefits, etc.? Or is it almost never worth the time/effort if the shell script is relative short/simple? Obviously it would be decent practice to do so with learning a language but I'm wondering if there are real benefits to default to e.g. python, go, or whatever instead of a shell script for even basic tasks (assuming they comparably simple to implement and do not require require too much care to write or are too verbose like e.g. C/Java respectively).

My only ever experiences with programming is my ~200 shell scripts from 5-500 lines long. Such scripts do stuff you would normally do on a Linux desktop: basic system admin, run applications, interact with the window manager, basic text manipulation and processing, etc. Recently I wrote a script that uses Syncthing's event API to check for status of sync. I haven't really encountered stuff I couldn't do with a shell script (I mean, it just uses other applications to do the real work), but perhaps it might make more sense to implement this with a real programming language like python.

If so, what programming languages could replace shell scripts, i.e.: relatively easy to write in and should be reasonably more performant? I'm guessing python is popular because it's noob-friendly to learn though people say it's generally not performant (I assume this doesn't really matter to replace tasks typically fulfilled by shell scripting where performance is generally of little concern, and probably python would still be faster in general). Besides that it seems go might also be a candidate as something modern yet performant? Any recommendations is much appreciated. I'm hesitant to consider things like perl because while they are very powerful, it's also very old and probably suffers from some complexities in design. All else equal, using something modern therefore probably more carefully designed seems preferable and could be something to "add to the resume." I'm pretty sure people will recommend Python for anything general-purpose because it's ubiquitous, but I heard python environments are PITA to deal with if I ever want to pivot from taking my knowledge from learning to use python for shell-scripting to using python for bigger projects.

69 Comments
2024/04/30
18:52 UTC

0

Open source license that is not free for companies but free for everyone else?

Is there such a license and is there one that is compatible with GPL?

Open source is nice, but if it is possible to make some money it will benefit everyone. Even companies.

-more resources to develop better products

-cheap high quality alternatives for companies

-free software for anyone else

communism doesnt work, it is just a fact, some money will make it possible to invest in development so getting some money involved while keeping it free is a good combination.

Is there a license that is like GPL but not free for companies? preferably GPL comatible.

17 Comments
2024/04/30
18:48 UTC

1

Use system proxy settings not working in Telegram

Hey everybody a new Linux user here need some help!

I have downloaded Telegram from Telegram website and then installed it on my Linux which is Debian KDE

Now the problem is I can't make it work with the "Use system proxy settings"

I use Nekoray on the system to set the system proxy to the config that I choose in Nekoray

But it seems that Telegram doesn't care about this and doesn't use the proxy settings I have set in Nekoray and therefore it doesn't connect

Any solutions?

0 Comments
2024/04/30
18:34 UTC

1

Does anybody know of a way to sign a PDF with a cac card?

I have tried every Linux native PDF tool I could find and Foxit and Acrobat in Wine with no success. I currently have a Win 10 VM solely to sign PDFs with my cac card. There has to be a way to cac sign PDFs on Linux.

2 Comments
2024/04/30
18:06 UTC

Back To Top