Linux

53201 readers
973 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
2
 
 

Every few minutes, when I'm playing 3d games (like minecraft or blue price) my fps drops to around 5-10, stays that way for about 10 seconds, and then returns to a normal framerate. This does not happen with 2D games. I don't play competitive games so it doesn't impact me a ton but I thought I'd report it here in case someone can solve the issue.

3
 
 

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.

4
 
 

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.

5
6
 
 

Hardware enablement highlights Canonical continues to enable Ubuntu across a broad range of hardware. The introduction of a new ARM64 Desktop ISO makes it easier for early adopters to install Ubuntu Desktop on ARM64 virtual machines and laptops.

Qualcomm Technologies is proud to collaborate with Canonical and is fully committed to enabling a seamless Ubuntu experience on devices powered by Snapdragon®

Ubuntu’s new ARM64 ISO paves the way for future Snapdragon enablement, enabling us to drive AI innovation and adoption together.

Leendert van Doorn, SVP, Engineering at Qualcomm Technologies, Inc

7
 
 

The Kubuntu Team is happy to announce that Kubuntu 25.04 has been released.

Codenamed “Plucky Puffin”, Kubuntu 25.04 continues our tradition of giving you Friendly Computing by integrating the latest and greatest open source technologies into a high-quality, easy-to-use Linux distribution.

The release features the latest KDE Plasma 6.3 desktop, KDE Gear 24.12.3, kernel 6.14, and many other updated applications and libraries.

8
16
submitted 19 hours ago* (last edited 2 hours ago) by [email protected] to c/[email protected]
 
 

EDIT: The solution is to unblock UDP port 5353 but the port has to be source port, not destination port. (--sport flag) See the modified rules. Also note that this is quite insecure. See this stackexchange question for more info on the security aspect.

EDIT2: see my comment for potentially better solution. I will edit this when I try it out.

I want to setup iptables firewall but if I do that, it blocks multicast DNS which I need. I am using command

dig "somehostname.local" @224.0.0.251 -p 5353

to get the IP through mDNS and these are my iptables rules (from superuser.com):

*filter

# drop forwarded traffic. you only need it of you are running a router
:FORWARD DROP [0:0]

# Accept all outgoing traffic
:OUTPUT ACCEPT [623107326:1392470726908]


# Block all incoming traffic, all protocols (tcp, udp, icmp, ...) everything.
# This is the base rule we can define exceptions from.
:INPUT DROP [11486:513044]

# do not block already running connections (important for outgoing)
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# do not block localhost
-A INPUT -i lo -j ACCEPT

# do not block icmp for ping and network diagnostics. Remove if you do not want this
# note that -p icmp has no effect on ipv6, so we need an extra ipv6 rule
-4 -A INPUT -p icmp -j ACCEPT
-6 -A INPUT -p ipv6-icmp -j ACCEPT

# allow some incoming ports for services that should be public available
# -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
# -A INPUT -p udp -m udp --dport 5353 -j ACCEPT # does not help
-A OUTPUT -p udp -m udp --sport 5353 -j ACCEPT # SOLVES THE ISSUE


# commit changes
COMMIT

Any help is welcome :)

9
 
 

Every four months, the KDE community rolls out a new wave of app releases all at once.

These updates cover a wide range of needs. Whether you’re managing personal files on your laptop or overseeing servers located thousands of miles away, KDE offers powerful tools to help you stay in control. Need to troubleshoot someone’s system remotely from the comfort of your sofa? There’s an app for that, too. From creating short viral clips for social media to producing full-length documentaries, KDE’s creative tools have you covered. And when it’s time to unwind, you can count on KDE for enjoying music, movies, or a good book.

Keep reading to discover what’s new in KDE Gear 25.04

10
 
 

Help support. Please make Affinity possible on Linux!

11
 
 

Upon upgrading from Fedora 41 to 42, I noticed that the USB tethering just doesn't work

networkctl recognizes the device as "wwan" now, instead of "ether". If I load up a previous kernel, USB tethering works normally.

This seems to be a change in the kernel, and probably won't be reverted in the future. What do I do?

More detail in this comment

You know what? Fuck this. I just backed my shit up and installed Debian. Still, please try to look into this, this could be a problem for many others

12
 
 

I'm leaving text editors like vscode/codium behind to learn something more modular, like Helix. I really wanna get used to. What advices can you give me to practice? I know that there is a :tutor command, I'm almost done with it. Do anyone know if there are exercices to practice? Im looking something similar to Ruby koans, a list of excersices to solve like "puzzles" but to Helix.

13
 
 

Basically the title.

I have seen the EU-OS/Suse discussions for some months now. However, Ubuntu/Arch/Fedora are extremely mature projects. So competing against them will be hard.

I want to know how realistic the scenario (described by the question) is.

14
 
 

Hey everyone,

as a longtime-Mac user who got used to the typical Mac-keyboard layout and using a Logitech MX Keys (Mac only) I was wondering if there is any chance of adopting the Mac-layout 1:1 on one of my favourite Linux-distros using KDE (desktop PC) without mapping each single key to match the Mac-key?

Is there any base tool I can use for this or any tool I can download to accomplish this?

Thanks in advance!

15
16
 
 

What’s new?

We’ve promoted our KDE Plasma Desktop offering to “Edition” status. The Fedora KDE team has been hard at work making sure bugs get fixed and everything is polished just so. We’re confident that this can stand along our other amazing flagship offerings.

I know the naming is a bit confusing, with GNOME-powered “Workstation” using a generic label while KDE Plasma Desktop has the tech right in the name. We’ll get that figured out eventually. If you don’t know where to start, don’t panic. Pick one and see how it goes. They’re both excellent desktop environments with great upstream communities, and the same Fedora system underneath it all.

We also have a new alternative desktop choice: COSMIC. This is a modern, written-all-in-Rust desktop environment from our friends over at System 76.

Perhaps most excitingly, we have a new installation interface! The previous UI was designed to manage a lot of before-you-even-start configuration choices. Over the past decade, though, we’ve gone to “get the full system installed with no fuss, then set up what you need from a complete environment”. That made the “hub and spoke” model more confusing than helpful. The new UI is streamlined and sleek, just like the Heart of Gold.

Of course, there are other big changes, as well as the usual updates to thousands of packages. See the Fedora Linux 42 Release Notes for all of the details, and don’t miss the “What’s New?” posts here on Fedora Magazine.

17
 
 
18
19
 
 

A new community-led initiative called “EU OS” to develop a Linux distribution initiative looks like a positive development. It is specifically created to address the unique requirements of the European Union's (EU) public sector organizations. For me, this initiative stands out for its commitment to the EU's digital sovereignty, reducing reliance on external vendors, and creating a secure, independent digital ecosystem.

20
 
 

Is there some sort of comprehensive guide on hardening RHEL clones like Alma and Rocky?

I have read Madaidan's blog, and I plan to go through CIS policies, Alma and Rocky documentation and other general stuff like KSPP, musl, LibreSSL, hardened_malloc etc.

But I feel like this is not enough and I will likely face problems that I cannot solve. Instead of trying to reinvent the wheel by myself, I thought I'd ask if anyone has done this before so I can use their guide as a baseline. Maybe there's a community guide on hardening either of these two? I'd contribute to its maintenance if there is one.

Thanks.

21
 
 

Found this cute little guy. Battery bms seems to either be dead or cell voltage too low. Has anyone in the Linux community revived a BMS before or recharged from zero?

22
18
Help with sed commands (lemmy.dbzer0.com)
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/[email protected]
 
 

Hi all! I have always only used sed with s///, becouse I've never been able to figure out how to properly make use of its full capabilities. Right now, I'm trying to filter the output of df -h --output=avail,source to only get the available space from /dev/dm-2 (let's ignore that I just realized df accepts a device as parameter, which clearly solves my problem).

This is the command I'm using, which works:

df -h --output=avail,source \
    | grep /dev/dm-2 \
    | sed -E 's/^[[:blank:]]*([0-9]+(G|M|K)).*$/\1/

However, it makes use of grep, and I'd like to get rid of it. So I've tried with a combiantion of t, T, //d and some other stuff, but onestly the output I get makes no sense to me, and I can't figure out what I should do instead.

In short, my question is: given the following output

$ df -h --output=avail,source 
Avail Filesystem
  87G /dev/dm-2
 1.6G tmpfs
  61K efivarfs
  10M dev
...

How do I only get 87G using only sed as a filter?

EDIT:

Nevermind, I've figured it out...

$ df -h --output=avail,source \
    | sed -E 's/^[[:blank:]]*([0-9]+(G|M|K))[[:blank:]]+(\/dev\/dm-2).*$/\1/; t; /.*/d'
85G
23
 
 

Has anybody been able to build a statically linked binary that shows a Vulkan surface? I've put some context around this problem in the video. I understand that the vulkan driver has to be loaded dynamically - so it's more of a question whether a statically built app can reliably load and talk with it. I think it should be possible but haven't actually seen anyone make it work. I'm aware of "static-window9" by Andrew Kelley but sadly it doesn't work any more (at least on my Gentoo machine T_T).

(I'm also aware of AppImages but I don't think they're the "proper" solution to this problem - more like a temporary bandaid - better than Docker but still far from perfect)

24
25
 
 

Points for something I've never tried.

Edit: Think I'll just blast Bazzite on it. The recent Gnome scales well and it has nice performance tweaks.
Cheers

view more: next ›