Linux

49755 readers
548 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
3
 
 

4
 
 

Hey everyone, I recently made a post about a new PC build. I was successful in building the PC. The specs are: ryzen 7 7800x3d and an 4070 ti super, 32 gigs of ddr5 ram, with an 850 watt PSU. I have booted up a couple games and have configured mango hud to make sure I'm getting the right performance. As far as I can tell, everything is running as it should. But, if you look at the picture provided, mangohud is showing that I'm currently throttling in power and temps. But looking at the above numbers I don't see how I'm throttling. Out of the games I've tested, black myth wukong, Hogwarts and silent hill 2 show I'm throttling. However, dead space remake, shadow of the tomb raider and ghost of Tsushima don't show im throttling. I'm confused by this and am wondering if it's a bug in mangohud?

EDIT: I'm on Linux mint. Kernal 6.8.0-52 EDIT2: doing some more research, I found this post https://www.reddit.com/r/linux_gaming/comments/13z1ov1/how_do_i_resolve_throttling_power_issue/

Which says that the throttling is actually what I should expect and it shows I'm getting the most out of my PC. So maybe I misunderstood

EDIT 3: looking at the config file for mango hud, it says : display GPU throttling status based on power, current, temp or "other". It seems to me that, this popu up appears if you have any 1 of those conditions.

5
6
 
 

Following arguments on the Linux kernel mailing list the past few days over some Linux kernel maintainers being against the notion of Rust code in the mainline Linux kernel and trying to avoid it and very passionate views over the Linux kernel development process, Asahi Linux lead developer Hector Martin has removed himself from being an upstream maintainer of the ARM Apple code.

7
 
 

Edit: I'll try my luck with Kubuntu and see how things go. Wish me luck :D

Edit 2: So I set up Kubuntu and everything seems to be working quite well. Unfortunately, since I'm trying to dual boot Windows and Kubuntu, I'm strumming with getting the boot order correct. I installed refind to have a selection upon booting, but setting a default doesn't work and removing the Windows boot partition altogether seems to be reverted upon restarting the PC. So that's annoying :D but I got touch controls in refind to work, so I don't always have to use the type cover. Outside of that, everything I need seems to be working fine.

So I have been happily using my Surface Go 2 for a couple years now and don't really have a lot of complaints right now. However, Microsoft being Microsoft and Windows being Windows, I'd like to move to a Linux distro because foss is just cooler and Linux is cooler lol.

I'm mainly using my Surface for school: taking hand-written notes in Journal, annotating and highlighting text in PDFs with Drawboard, and browsing the web. Very basic stuff. Not gaming, not really a power user either, so I don't need any fancy distro that allows me to go under the hood and tinker.

Before moving, I've got a couple of things I'd like to ask:

  1. Which distro should I choose? Something similar to Windows wouldn't hurt but doesn't have to be necessarily. I've previously installed and used (K)ubuntu on an old laptop of mine and it worked fine. I've heard that Mint is more or less one of the best choices for transitioning since it "just works" and has pretty much anything you could want right off the bat - settings and drivers and such. Is Mint fine for a Surface Go 2? I can add my specs if needed.

  2. Do you have recommendations for a notes taking app and a PDF reader that allows for editing, annotating, highlighting text? I've had a thorough chat with GPT (don't judge) and have been recommend Xournal++ which is apparently also available on Linux. I've played around with it a little and it seems fine, but I'd also take recommendations from the community if you have any.

  3. Would I be fine running Linux off an SD card that I have inserted in my device? The interal storage of the Surface is quite limited with 120GB, so it has an SD card slot to expand its storage; my SD card has another 120GB on it. I've mostly been fine just using the internal storage, but it's slowly running out, so I will likely have to use the SD card at some point. Should I make the effort of moving all my data - like documents, photos and stuff - to the SD card and install Linux onto the internal storage itself alongside Windows, or would I also be fine installing Linux onto the SD card? Apparently, this is not ideal because of slower read and write speeds compared to the built-in SSD (?) storage; moving all the data is not too much fun either, however.

  4. Is stylus/Surface Pen support a thing on Linux? And will the Surface keyboard work fine too? I imagine yes, but I don't know for sure. That would be a must for whatever distro I choose since it's the primary way of taking notes and typing for me.

That should be it, I think. Anything else that might be interesting for me or important to know?

8
 
 

EDIT WITH UPDATE: Operation went off without a hitch! I'm now up and running with the 512GB nvme drive! Next stop is dual booting nixos, which was the whole reason for switching to the larger drive.

ORIGINAL POST:

I’ve got a laptop running Arch (btw), with a 128GB nvme in it. The nvme has two partitions. EFI boot, and a luks encrypted lvm.

I’ve got a 512GB nvme I want to swap in. I think I can clone the device with dd, update the uuids, expand the lvm, and drop in the 512 nvme, but my searching hasn't given me a clear confirmation of this. Am I correct in my thought process, or am I setting myself up for disaster?

9
 
 

cross-posted from: https://lemm.ee/post/54845927

TL;DR: Serpent OS is facing funding challenges but development continues. Alpha2 is coming soon with an improved installer. We’re seeking community support through donations and volunteers for key roles. Our technical roadmap includes versioned repositories, immutable OS features, and improved package management workflows. We had a flurry of activity around the Christmas period, including our first alpha release as well as enabling offline rollbacks early in January. We’re actively working on alpha2, but we also need to talk about the elephant in the room.

10
 
 

Hey everyone,

I am trying to set up a VM on my Linux Mint pc for Windows 11. I already have the pc dual boot linux and Windows. My goal is to set up a Windows 11 VM and then delete Windows partition from my pc. I don't want to dual boot into windows anymore, but I need it for a few applications.

Is there a way to get the key I already bought and use it for the VM I am going to set up?

Side note, what VM software do you recommend? VirtualBox seems popular, but would like some advice.

11
 
 

Hey, I am trying to create an IPC command that shows both the media title and the progress bar.

So far, show-progress displays the bar and the elapse time.

And I can use show-text "${media-title}" to show the title.

But I can't seem to do both.

I saw this in the docs

show-text <text> [<duration>|-1 [<level>]]
              Show  text  on  the  OSD. The string can contain properties, which are expanded as described in Property Expansion. This can be used to
              show playback time, filename, and so on. no-osd has no effect on this command.

              <duration>
                     The time in ms to show the message for. By default, it uses the same value as --osd-duration.

              <level>
                     The minimum OSD level to show the text at (see --osd-level).

And thought the level=3 is what I needed, but doing

show-text abc 2000 1

shows the text and

show-text abc 2000 3

shows nothing.

I tried chaining show-progress with show-text, but that also doesn't work cause they override each other.

Any help would be appreciated, cause I feel like I am missing something simple here

12
20
submitted 1 day ago* (last edited 1 day ago) by Artemis_Mystique@lemmy.ml to c/linux@lemmy.ml
 
 

Solved: thanks to u/dbkblk@lemmy.world; remember to add these USE flags to wpa_supplicant

net-wireless/wpa_supplicant wps wep ap fasteap eap-sim tkip uncommon-eap-types

I am facing this peculiar issue that i can connect to every WiFi connection except my router, it's a recent gentoo install with no display server, i am using a D-link WiFi USB card

What I have tried:

  • using iw dev (device) scan to list the ssid and try connecting with wpa_supplicant
    • dhcpcd waits for connection then times out (does connect succesfully to my phones hotspot)
  • gave up and spent 3 hours compiling NetworkManager
    • every ssid shows up in nmcli dev wifi list except my router
    • forcing a connection passing bssid shows id not found
    • manually setting the connection using nmcli add also does not work
    • iw dev (device) scan lists my routers ssid along with others
    • nothing is blocked in NetworkManager and I spent hours going back and forth with chatgpt trying to force a connection to no avail
  • tried changing router setting(including changing broadcasting channels verifying, black lists etc)

What i have ruled out

  • its not the dlink wifi card or the laptop, I can connect to my router just fine using nmcli in a live fedora instance on the same laptop

I have tried every conceivable thing and I cant find what the issue is, it's like my router and Gentoo have some bad blood between them

13
14
 
 

I've been in a fortunate position this past year of having some extra money to throw at shiny new hardware and I've experienced a side of Linux I haven't dealt with before...its poor support for shiny new hardware.

I grabbed a Ryzen 9000 CPU and an X870 motherboard...only to find that ethernet didn't work on kernel 6.11. I had to use a usb-c to ethernet dongle for several weeks until 6.13 released.

Just today and what prompted this post, I splurged on a 4k 240hz HDR monitor. HDR is obviously in-progress and I did not expect it to work out of the box. Critically, what I did expect was for the 240hz part to work, but I couldn't set it to anything beyond 120. Skip forward a couple hours, and I now know what EDID files are and how to use different ones. For more insight on my night, see this issue, this blog post, and this blog post. After all that, 240hz is smooth, goddamn.

For me, I'm not complaining. I love desktop Linux far more than shiny new hardware. I would return this monitor before considering not using Linux, and in the latter case it was a good chance to learn more about how Linux deals with display devices.

But I'm also one of many people here who wants to see desktop Linux become more popular, and if a regular person encountered either of those issues, they're going straight back to Windows. While that monitor issue has been fixed upstream, it's still broken in an up-to-date distro like Fedora and the monitor is over 6 months old at this point.

When it comes to stuff like HDR, that's obviously progressing quickly and is likely to become a non-factor in the future. But new ethernet controllers and new monitors with invalid DisplayIDs are likely always going to be coming out. Unless you're willing to tinker, your only option is to wait weeks or months before buying the new shiny thing if you want to use Linux.

That brings me to my question, is there a future where this isn't the case? And what would be required to get there?

Do motherboard/monitor/IC/etc manufactures need to submit their own kernel patches well in advance of product releases, like what AMD and Intel do for their CPUs and GPUs? Are we just waiting for them to give a shit?

Is there any possibility of hardware support-related patches getting backported to older kernel versions sooner rather than waiting for new major releases?

This is kind of an ungooglable question, and I figured it might make for an interesting discussion topic if anyone has more insight or thoughts on this.

15
 
 

I am relatively new to linux and would like to learn how to troubleshoot things like this. I'm not sure whether the title is indeed correct, but I've had it happen twice now that I was on discord with friends, and suddenly my whole system freezes. When I restart, the official discord client says it has an update.

Has anyone else have this happen? How do I best look for the actual cause? Or at least some error message I can google?

I am on vanilla arch, running plasma on wayland, and I've got the AUR enabled using yay. Discord is installed from the arch extra repo though.

16
17
18
 
 

UPDATE: after many comments, let me be clear that i have nothing against systemd at a technical level. It indeed solves issues that people had and found it's way in most mainstream distros for good reasons, beside being pushed by Redhat and Debian, which makes for basically every other mainstream distro out there without much choice. I never used it long enough to judge it, and i dont intend to judge it from a technical point of view. I am worried that such a centra piece of technology deeply interwined with linux is under direct control of IBM and Microsoft (who is the employer of the systemd lead). This might mean nothing, or this could be important for the long time future of linux freedom.

I have recently been exposed to a lot of stuff against systemd.

I know its an old debate that has inflamed people for a long time, I am not looking into restarting it as I never took a stance into it in the past anyway.

I am myself a almost 30+ years power user of Linux and I have never used systemd much myself since it never fixed any issues I had with the previous approaches, and since I am a good user of Gentoo, always loved the freedom to just keep using OpenRC and din't ever bother with systemd.

I like the Unix approach and at the same time, if it is not broken don't fix it, is my basic idea. So my approach to systemd has been not of dislike, rather of I don't care, I don't need it. And I never needed it anyway.

After reading trough most of the links below I start to think that maybe my stance could be more than simple technical.

What are other lemmy-ers idea on all this?

I didn't knew about Microsoft taking over the Linux Foundation either, and I am getting concerned about the real freedom behind my beloved Linux.

TLDR: I don't dislike systemd, I never cared about systemd. Do I need to start caring now due to all this non technical issues?

Note: i a copying verbatim the following article to stress that these are not my personal opinions and that i didnt do a proper research on the topic, except reading (most) of the links below.


(The following is a post on the #libreware telegram channel on the 7th/8th of February 2025)

Lennart Poettering intends to replace "sudo" with #systemd's run0. Here's a quick PoC to demonstrate root permission hijacking by exploiting the fact "systemd-run" (the basis of uid0/run0, the sudo replacer) creates a user owned pty for communication with the new "root" process.

This isn't the only bug of course, it's not possible on Linux to read the environment of a root owned process but as systemd creates a service in the system slice, you can query D-BUS and learn sensitive information passed to the process env, such as API keys or other secrets.

https://fixupx.com/hackerfantastic/status/1785495587514638559

Nitter mirror: https://xcancel.com/hackerfantastic/status/1785495587514638559

Here are some links about #systemd #alternatives for #Linux in no particular order. Which are your favorite alternatives and distros?

https://suckless.org/sucks/systemd/

https://unixsheikh.com/articles/the-real-motivation-behind-systemd.html

https://sysdfree.wordpress.com/

https://nosystemd.org/

https://skarnet.org/software/systemd.html

https://the-world-after-systemd.ungleich.ch/

https://ewontfix.com/14/

https://forums.debian.net/viewtopic.php?t=120652

https://www.devuan.org/os/announce/

https://www.devuan.org/os/init-freedom

https://thehackernews.com/2019/01/linux-systemd-exploit.html

https://judecnelson.blogspot.com/2014/09/systemd-biggest-fallacies.html

https://chiefio.wordpress.com/2016/05/18/systemd-it-keeps-getting-worse/

https://systemd-free.artixlinux.org/why.php

Some more added here too: https://start.me/p/Kg8keE/priv-sec

#systemd #Linux

19
 
 

I was using regolith ubuntu on an old MacBook and fell in love with i3wm on x11 or whatever it uses. Got a new computer Intel and the composters never worked right scrolling pages or watching videos. I gave up and went back to stock ubuntu. Wayland works well for me but my question is how hard is it to build a de like regolith using awesome it some other tiler? It seems intimidating

20
 
 

Little Update: Just added an exit command after the help.

Here is another little script that nobody asked for. There are multiple ways to accomplish this, but I always forget how or which is the best way. Use tr? Or sed? When can I use the more efficient Bash substitutions instead, which are Bash integrated functionality of variables that saves me some extra calls. Also most solutions to title case will compress all spaces to single space after a word; not this "title" solution, which respects the spaces.

Use this like you would use grep or tr, which get input from stdin and output to stdout. There are no special options, only mode names without dashes. Multiple modes can be combined, but there is actually no reason to do so at the moment.

Example:

echo "Hello World, this is an EXAMPLE." | tocase toggle upper1

tocase:

(Note, this Beehaw instance always replaces some characters and makes the below script unusable. Copy it from the linked script instead.)

#!/usr/bin/env bash

if [ "${#}" -eq 0 ] ; then
    cat &lt;&lt; EOF
usage: tocase option...

options:
    upper       all uppercase
    upper1      upper first character

    lower       all lowercase
    lower1      lower first character

    toggle      swap uppercase and lowercase
    toggle1     swap upper and lower of first character

    title       upper first character and lower rest of each word

examples:
    echo "Hello World, this is an EXAMPLE." | tocase toggle upper1
EOF
exit 0
fi

while IFS= read -r stdin ; do
    for argument in "${@}" ; do
        case "${argument}" in
        upper) stdin="${stdin^^}" ;;
        upper1) stdin="${stdin^}" ;;
        lower) stdin="${stdin,,}" ;;
        lower1) stdin="${stdin,}" ;;
        toggle) stdin="${stdin~~}" ;;
        toggle1) stdin="${stdin~}" ;;
        title)
            # Note: Many other solutions other than this sed command do not 
            # work on each word.
            stdin="$(sed -r 's/\&lt;./\U&amp;/g' &lt;&lt;&lt;"${stdin}")"
            ;;
        esac
    done

    printf "%s\n" "${stdin}"
done
21
 
 

It's always been just KDE to me. In the past year or so, I've noticed people calling Plasma KDE or even just Plasma. What happened? Why do people insist on making the name longer? Why the word Plasma? What is Plasma referring to? And, are they trying to move away from the KDE name to just Plasma?

Answer: Plasma is the desktop environment. KDE is the community that makes Plasma and many other related software.

22
 
 

I'm looking for a reliable way to log when my laptop is:

  • powered down
  • boots up
  • goes to sleep
  • wakes up

Currently I'm checking both the systemd-suspend and tlp systemctl services, but these don't really feel very robust, and I don't have TLP installed on all my machines.

Is there an easier way to do this, or a better systemctl unit that logs all the power states of my machine. Preferably laptop agnostic?

Laptop snippet so far:

journalctl --since -9days -u systemd-suspend -u tlp \
    | grep -P "Finish|Start|Stopped" | sed '/.*Finished TLP.*/d;
            s|Starting TLP.*|╭╴System Boot  |;
 s|Starting System Suspend.*|┤ · Sleep      |;
 s|Finished System Suspend.*|├ · Wake       |;
             s|Stopped TLP.*|╰╴Power Off    |;' \
    | sed -r 's|^(.*:[0-9]+)+:[0-9]+.*:(.*)|   \1 \2 |'
23
56
submitted 2 days ago* (last edited 2 days ago) by cypherpunks@lemmy.ml to c/linux@lemmy.ml
24
25
117
Reassessing Wayland (dudemanguy.github.io)
submitted 3 days ago by badmin@lemm.ee to c/linux@lemmy.ml
 
 

So a bit under 3 years ago, I made my infamous Wayland rant post that is likely the most read post on this blog by miles. I should really actually write about music again one of these days, but that's a topic for another time. The language was perhaps a bit inflammatory, but I felt the criticisms I made at the time were fair. It was primarily born out some frustrations I had with the entire ecosystem, and it was not like I was the only sole voice. There are other people out there you can find that encountered their own unique Wayland problems and wrote about it.

With that post, I probably cast myself as some anti-Wayland guy which is my own doing, but I promise you that is not the case. You can check my mpv commits, and it's businesses as usual. Lots of Wayland fixes, features, and all that good stuff. Quite some time has passed since then, and it is really overdue look at the situation again with all the new developments in mind. To be frank, my original post is very outdated and it is not fair to leave it up in its current state without acknowledging the work that has been done. So in comparison to 3 years ago, I have a much more positive outlook now.

view more: next ›