Linux

53339 readers
621 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
1
 
 

Or is there maybe a way to set the pager for all help related queries to some command? I'm using bat and would like to pipe all --help through | bat --language=help by default for the syntax highlighting and colored output... Or if you know a lower effort way to color the output of --help let me know.

2
17
submitted 12 hours ago* (last edited 12 hours ago) by [email protected] to c/[email protected]
 
 

I'm going to switch to arch for my general-purpose laptop, since I feel like kubuntu is not enough for me, I want to try a tiling WM and do some ricing.

I'm still undecided between plain arch or CachyOS, because that optimisation looks promising and I also game on my laptop.

The fact is that CachyOS seems more "bloated" with some unnecessary packages, so what do you suggest me? A simple arch installation, arch using the cachy-linux kernel and its optimisations or a debloated CachyOS install? Thank you all in advance.

3
 
 

Hi. I recently encounter these random freezes on the Fedora i3 flavor. I tested on 2 different computers with different graphical hardware (Intel and AMD) and different configs (fresh install and my own config). I got the random freeze on all of them. It is very hard to replicate these freezes and journalctl does not show any error. Even with the fresh install version, I still get these freezes.

The freezes are something like:

  • Cannot use Mod+key to launch anything. This includes Mod+D for Dmenu or Rofi, I test with both. Further, you also cannot launch things like terminal: Mod + Enter.

  • Mod+ number still works. So you can switch workspace but cannoy launch anythint

  • Mod + key for mode works. So in my case, I bind Mod+0 to show a mode bar with selections to shutdown, reboot or logout. Pretty similar to how Manjaro i3 handled it. When the freezes occur, this is the only way for me to logout.

  • Force reboot or just logout and log back in solves the problem.

Anyone on i3 Fedora has these issues? I am 100% sure it is Fedora specific because I test the same setup on Debian and Arch and never get these freezes.

4
35
submitted 21 hours ago* (last edited 21 hours ago) by [email protected] to c/[email protected]
 
 

Hi, so I want to building a pc for a home server (?) or NAS. I dont really know whats the most appropriate term but what I intend to build is a one pc for my household. currently my requirement is one work 'pc' capable of heavy 3d modeling one light work pc. two 4k gaming tvs. (they most likely wont be used at the same time)

my knowledge of technical stuff is bretty basic so please be patient with me.

before, i used my steam deck to stream my work pc using parsec but i thought i just want to jump all in on linux and using vm to use more niche 3d softwares.

my budget is flexible as long as i dont need to use enterprise hardware. also i heard nvidia is not good for linux so i'd like to confirm if that is still the case as im thinking of using 5090 if not, i hope amd releases an equivalent capable card or if any according my quick research suggest.

as for linux, the only distro (?) i ever used is the steam deck one and i love it. im not a programmer or even remotely capable one so i'd like to avoid anything that has to be manually typing commands at terminal but im open to surface level tinkering.

thank you for your time

5
 
 

This year, so far, I've moved two older family members over from windows 10 onto Linux. I opted for an ubuntu based distro as I'm familiar enough to troubleshoot it, even remotely.

The first was a laptop, about 10 years old; windows was unusably slow. Luckily, the transition was smooth, Linux Mint took first attempt and no issues were had, everything worked out of the box except swipe scrolling - a quick tutorial sorted that out (terminal intervention was needed). 4 hours total setup (including a pile of desktop shortcuts), dual boot just in case she had issues.

The second was an older machine, a desktop, Frankensteined out of old parts (oldest being the motherboard at 15 years old). It ran windows 10 without a single hitch or slowdown.

2 days to get it "running", I had to repair grub to get the damn thing to boot after an install finally took. In the end I had to go with lubuntu with a manual cinnamon install because I hit my 4th mint install attempt and got a strong case of the"fuck thats". At the end I have a machine that has ghost headphones flickering into existence giving choppy sound that is pretty unusable. There is also horrific graphical glitches when booting (harmless, but I crapped a brick when I first saw it) - though I suspect this is just the fact there is an elderly Nvidia card in there.

A lot of time spent in terminal was unable to even identify what was happening - a first for me! My money is on a bios update, but yeah, not fun on old boards.

All in all, two very different experiences. It's not a warning against Linux (make the change now while the support is there!), just a warning that the road isn't always smooth. The bumps can come in odd places - you'd think the laptop would be the tricky one but nope, desktop rig was the worst.

Good luck out there with the change folks!

6
 
 

One of the strongest points of Linux is the package management. In 2025, the world of Linux package management is very varied, with several options available, each with their advantages and trade-offs over the others.

7
 
 

macOS has a bunch of apps which can do so, including SketchyVim. Basically you would have all the vim modes motions and operators, inside any text box in the OS / in any app. I just did some looking up and asked LLMs, but didn't find any linux equivalents of that. Ideally they would work on wayland and have app or window class exceptions.

8
 
 

I really wish that I was born early so I've could witness the early years of Linux. What was it like being there when a kernel was released that would power multiple OSes and, best of all, for free?

I want know about everything: software, hardware, games, early community, etc.

9
 
 

Hello!

I am pleased to announce a new version of my CLI text processing with GNU sed ebook. This book heavily leans on examples to present features one by one. In addition to sed commands and options, regular expressions are also discussed in detail.

Links

You can read the book online here: https://learnbyexample.github.io/learn_gnused/

Interactive TUI app for exercises: https://github.com/learnbyexample/TUI-apps/blob/main/SedExercises

Feedback

I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

Happy learning :)

10
 
 

After hours of trying understand how to set up VSCodium with Java extension, i found a solution so here it is, idiotproof (i hope) tutorial for future me and others like me ;)

Flatpak VSCodium with java extension

Via Terminal

  1. Install VSCodium:
flatpak install com.vscodium.codium
  1. Install "Extension Pack for Java" extension for VSCodium:
flatpak run com.vscodium.codium --install-extension vscjava.vscode-java-pack
  1. Install flatpak openjdk extension. (In this case openjdk21):
flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21
  1. Add two new environment to use flatpak openjdk extension in VSCodium:
flatpak override --user --env=JAVA_HOME=/usr/lib/sdk/openjdk21 com.vscodium.codium && flatpak override --user --env=PATH=/usr/lib/sdk/openjdk21/bin:/app/bin:/usr/bin com.vscodium.codium
  1. Restart VSCodium:
flatpak kill com.vscodium.codium && flatpak run com.vscodium.codium
  1. Done.

Via Graphical interface

  1. Install "VSCodium":
    1. Go to app store and search for "VSCodium".
    2. Make sure it's flatpak versionn.
    3. Click Install button and after downloading open the app.
  2. Install "Extension Pack for Java" extension in VSCodium:
    1. Go to Extensions pannel (on the left).
    2. Search for "Extension Pack for Java".
    3. Click Install button.
    4. Close "VSCodium".
  3. Install flatpak openjdk extension. (In this case openjdk21):
    1. Search for "Terminal" app and open it.
    2. Paste command below:
flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21
3. Click `Enter`.
4. Close "Terminal".
  1. Install "Flatseal":
    1. Go to app store and search for "Flatseal".
    2. Click Install button and after downloading open the app.
  2. Allow VSCodium to use flatpak openjdk extension:
    1. Search for "VSCodium" in Flatseal.
    2. Go to Environment.
    3. Click + button (to the right from Variables) and paste:
PATH=/usr/lib/sdk/openjdk21/bin:/app/bin:/usr/bin
4. Click `+` once again and paste:
JAVA_HOME=/usr/lib/sdk/openjdk21
  1. Restart VSCodium

PS

There is formatting issue with markdown but it's on lemmy side i think

11
12
13
14
22
submitted 2 days ago* (last edited 1 day ago) by [email protected] to c/[email protected]
 
 

I am trying to update from Silverblue 41 to 42 (fully updated) but run into issues when attempting to update from both the software app and from CLI.

The problem using the software app is the same as what is described by this other user, who is using Fedora Workstation not Silverblue like I am:

https://discussion.fedoraproject.org/t/update-to-fedora-42-fails-in-gnome-software/148885

When I click the download button, it looks like it's downloading multiple files since the progress bar goes from 0 to 100 several times, and then it gets up to 95% then suddenly returns to the download button. This happens in about 30 seconds.

Using the CLI method, I run the following command:

rpm-ostree rebase fedora:fedora/42/x86_64/silverblue

and get the following errors:

 Problem: conflicting requests
  - package dnf5-plugin-automatic-5.2.12.0-2.fc42.x86_64 from updates requires libcurl-full(x86-64), but none of the providers can be installed
  - package dnf5-plugin-automatic-5.2.12.0-1.fc42.x86_64 from fedora requires libcurl-full(x86-64), but none of the providers can be installed
  - package dnf5-plugin-automatic-5.2.12.0-2.fc42.x86_64 from updates-archive requires libcurl-full(x86-64), but none of the providers can be installed
  - package libcurl-minimal-8.11.1-4.fc42.x86_64 from @System conflicts with libcurl(x86-64) provided by libcurl-8.11.1-4.fc42.x86_64 from fedora

SOLUTION: Uninstalled layered packages in dnf-automatic, libreoffice, and rpmfusion and then restarted. Rebase command successfully completed thereafter.

15
 
 

I want to create a USB gadget with a raspberry pi zero 2W. I'm starting with imitating a webcam I already have to see how much of this I can figure out. I've used the online documentation and a couple AI bots to get this far quickly, but I'm hung up on a ln command. It's telling me "ln: failed to create symbolic link 'configs/c.1/uvc.usb0': No such file or directory" when trying to create the link. This makes no sense to me though. I'm trying to create the link, of course it doesn't exist yet. That's what that command is supposed to do.

I've confirmed this problem in alpine linux and raspbian lite.

Below is the little script I have so far just to create the device:

#!/bin/bash
modprobe libcomposite
cd /sys/kernel/config/usb_gadget/
mkdir -p fauxcam
cd fauxcam
echo 0x046d > idVendor  # Logitech Vendor ID
echo 0x094b > idProduct # Brio 105 Product ID
echo 0x0200 > bcdUSB
echo 0x9914 > bcdDevice
mkdir -p strings/0x409
echo "111111111111" > strings/0x409/serialnumber
echo "Brio 105" > strings/0x409/product
mkdir -p configs/c.1/strings/0x409
echo "UVC Configuration" > configs/c.1/strings/0x409/configuration
echo 250 > configs/c.1/MaxPower
mkdir -p functions/uvc.usb0
ln -s functions/uvc.usb0 configs/c.1/
echo "usb0" > UDC
16
 
 

Solution: When I formatted all my drives to install Linux on one and Windows on the other, I kept both connected and they share EFI boot partition as a result. Every time I reinstall Linux it formats the drive and therefore deletes the Windows's EFI Boot as well. One way is to fix this is to reinstall Windows while disconnecting the drive you have Linux on. Or you can move the boot files if you don't want to do that.

I used this guide: https://forums.tomshardware.com/threads/changing-windows-boot-manager-drive.3571420/post-21561626

Also remember to delete the Microsoft folder in the boot folder on Linux after you’ve checked that the new boot loader is working.

OP:


Currently dual booting as I need Windows for a few tasks and ganes Linux just won’t do. Since setting everything up I’ve reinstalled Linux twice, both times I’ve lost the ability to boot into windows and have needed to reinstall it.

Disk doesn’t show at all in Grub, tried all kinds of things but it just doesn’t show as a bootable OS. It doesn’t show in the boot options in the BIOS or the boot menu for my motherboard. Drive shows up and all the files are still on it. So my guess is the Windows bootloader somehow installs on the same disk that I have Linux on.

I run Linux(Fedora) and Windows on two separate drives.

Windows take forever to install. Anything I can do now to prevent this from happening if I need to reinstall Linux or if I wanna to some distro hopping?

Just to be clear, everything is working right now. But I want to prevent having to reinstall Windows every time I change distro or reinstall my Linux OS

17
 
 

Hey again.

Thank you again for all of the help with the dual boot and repartition a few weeks back. I am running Linux Mint.

I repartitioned the Linux side to about 25 GB and over the last few weeks just downloading updates, I guess it has filled up. It tells me there is only 75 MB left. Is that normal or can I free up room again?

Also, the printer no longer prints. It just hangs when I try to print. It shows up correctly as the HP Deskjet 3510 but won’t print. Any tips on how to fix?

18
34
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/[email protected]
 
 

EDIT: This has worked, thanks for help: LD_PRELOAD="" VK_LOADER_LAYERS_ENABLE=VK_LAYER_MANGOHUD_overlay_x86_64 %command% --skip-launcher --vulkan

Hi, so I've been using Fedora 41 GNOME since release with no issues at all and I've decided to do a new fresh install of Fedora 42 yesterday.

Everything seemed to run well but I've encountered this issue in games that after around 30min I get this weird stutter. Until then everything runs smoothly.

As you can see in the video the stutter only occurs during mouse movement or during camera movement with keyboard. Once the camera moves on it's own and just tracks the character the frametimes are perfectly flat so it does not seem like the fault is on the game but somethings off with the system compositor?

This happens with or without VSync, I've tried with and without VRR, I've tried chaning game settings and also different Proton versions... only thing that helps is to restart the game but then I'll have to do it once again in about 30min.

My suspicion is on the new triple buffering in new GNOME 48 but I have no idea how to turn it off to test.

Any suggestions?

19
 
 

Title is quite self-explanatory, reason I wonder is because every now and then I think to myself "maybe distro X is good, maybe I should try it at some point", but then I think a bit more and realise it kind of doesn't make a difference - the only thing I feel kinda matters is rolling vs non-rolling release patterns.

My guiding principles when choosing distro are that I run arch on my desktop because it's what I'm used to (and AUR is nice to have), and Debian on servers because some people said it's good and I the non-rolling release gives me peace of mind that I don't have to update very often. But I could switch both of these out and I really don't think it would make a difference at all.

20
7
Build Package with Qi. (lidgnulinux.blogspot.com)
submitted 2 days ago by [email protected] to c/[email protected]
 
 

Back in August 2024, I discovered a linux distro called Dragora GNU/Linux. Dragora has a unique package manager called qi. For package instalation, Qi feel like installpkg from Slackware. For building package, qi takes some similiar approaches from PKGBUILD (Archlinux) and APKBUILD (Alpine linux). Qi uses a recipe as alternative of PKGBUILD, APKBUILD or slackbuild file to build package. Qi seems universal to use across distros, I’ve been actively using it on Ubuntu, Dragora, and LFS.

21
 
 

My laptop does support this feature since it was working on Fedora KDE. But jumping over to arch, it seems not to work at all.

1. power-profiles-daemon.service is enabled and running.

● power-profiles-daemon.service - Power Profiles daemon
     Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; enabled; preset: disabled)
     Active: active (running) since <time>; 12min ago
 Invocation: 4f20b3d144584a759b4a6c5ea14aa739
   Main PID: 608 (power-profiles-)
      Tasks: 4 (limit: 6850)
     Memory: 1.6M (peak: 2.8M)
        CPU: 81ms
     CGroup: /system.slice/power-profiles-daemon.service
             └─608 /usr/lib/power-profiles-daemon

Apr 18 11:14:52 berserk-arch systemd[1]: Starting Power Profiles daemon...
Apr 18 11:14:52 berserk-arch systemd[1]: Started Power Profiles daemon.

2. plasma-powerdevil.service is static and running.

● plasma-powerdevil.service - Powerdevil
     Loaded: loaded (/usr/lib/systemd/user/plasma-powerdevil.service; static)
     Active: active (running) since <time>; 12min ago
 Invocation: 7d72f24a0e5e4a74889a3895b91eb51c
   Main PID: 1074 (org_kde_powerde)
      Tasks: 9 (limit: 6850)
     Memory: 10.6M (peak: 11.4M)
        CPU: 1.391s
     CGroup: /user.slice/user-1000.slice/[email protected]/background.slice/plasma-powerdevil.service
             └─1074 /usr/lib/org_kde_powerdevil

3. upower.service is enabled and running.

● upower.service - Daemon for power management
     Loaded: loaded (/usr/lib/systemd/system/upower.service; enabled; preset: disabled)
     Active: active (running) since <time>; 12min ago
 Invocation: 7aa43a43146346e383c961ce12cc9ded
       Docs: man:upowerd(8)
   Main PID: 540 (upowerd)
      Tasks: 4 (limit: 6850)
     Memory: 5.1M (peak: 5.9M)
        CPU: 251ms
     CGroup: /system.slice/upower.service
             └─540 /usr/lib/upowerd

I've already tried to to put

GRUB_CMDLINE_LINUX_DEFAULT="amd_pstate=active"

as a kernel argument that doesn't seem to do anything as well. I can't figure it out. The power management settings work tho. Any idea what's wrong? Thanks.

22
23
11
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/[email protected]
 
 

Hello ladies and gentlemen as a brand new user (installed yesterday on new computer) of Linux in general and Bazzite specifically. I had a bootable USB I was going to use for a different distro before I decided on using Bazzite with another USB.

I decided to use the first one to move my meme collection to the new computer but when I deleted the partition and reallocated it with the highlighted option (the one that is not ms-dos I can not remember the specific name) the drive now seems to have disappeared. When I plug it in now it does not auto detect anything and for the life of me I can not find any drives through Dolphin.

If anyone can tell me how I fucked it up and/or how to find it/ fix it I would be grateful. I can always do it in Windows since I have to set up the old one to access the memes anyway but I would like to know how to do it here for the future. Thanks in advance.

24
 
 

Help support. Please make Affinity possible on Linux!

25
view more: next ›