Linux

49544 readers
911 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
26
27
28
 
 

Behold, a Linux maintainer openly admitting to attempting to sabotage the entire Rust for Linux project:

https://lwn.net/ml/all/20250131075751.GA16720@lst.de/

The good news is this doesn't affect drm/asahi, our GPU driver. The bad news is it does affect all the other drivers we're (re)writing in Rust, two so far with a third one coming.

Another choice quote, calling R4L "cancer": https://lore.kernel.org/lkml/20250128092334.GA28548@lst.de/

Personally, I would consider this grounds for removal of Christoph from the Linux project on Code of Conduct violation grounds, but sadly I doubt much will happen other than draining a lot of people's energy and will to continue the project until Linus says "fuck you" or something.

As for how to move forward, if I were one of the Rust maintainers, I would just merge the patch (which does not touch code formally maintained by the dissenter). Either Linus takes the pull, and whatever Christoph says is irrelevant, or he doesn't, and R4L dies. Everything else is a waste of everyone's time and energy.

Edit: Sent in my 2 cents: https://lore.kernel.org/rust-for-linux/2b9b75d1-eb8e-494a-b05f-59f75c92e6ae@marcan.st/T/#m1944b6d485070970e359bbc7baa71b04c86a30af

29
63
ope, kernel panic :/ (sh.itjust.works)
submitted 4 days ago* (last edited 3 days ago) by AlligatorBlizzard@sh.itjust.works to c/linux@lemmy.ml
 
 

I'm on Bazzite and was able to rollback and ~~boot~~ get to the desktop, but I'm not completely sure where to go from here. I think I need to pin my current deployment before doing anything else? I think sudo ostree admin pin 0 ? (No, it's 1)

Help is welcome but I've barely begun to troubleshoot and I just installed Discord to ask on there. Looking for sympathy I guess?

Edit: phrasing

EDIT2: Not just me, someone on the uBlue Discourse linked to this post, and other people have posted about it on the Bazzite Discord. Roll back and wait, and curious if you're also on the Nvidia KDE build too. I should probably be helpful and open an issue on GitHub. :/

Edit 3: devs are working on it :)

Final edit: the devs released a working update this afternoon, I just updated and it works. I kinda like this atomic distro thing, at no point in time was my computer unusable. 10/10 experience, still would prefer to avoid future kernel panic at the disco, lol.

30
 
 

Hi y'all! My set up:

  • Desktop PC, running Ubuntu 24 and KDE 5.27
  • Local server running Ubuntu 24

I have had my Dolphin file browser set up to connect to the local server vis SSH since forever but starting this week, it can't seem to connect. It just says "Loading..." forever, no error.

This is the URL it uses for this connection:

sftp://myname@192.168.68.137:22/

Until last weekend, it just worked. I don't recall anything happening around that time. I don't think anything has changed on the server.

I can still connect via SSH at a terminal just fine so I know the server is online & the user hasn't changed.

Are there logs for Dolphin somewhere? How can I troubleshoot this?

Thanks for any ideas!

EDIT: I, uhhh... rebooted and it works now. Thanks anyway @just_another_person@lemmy.world you taught me how to troubleshoot this tool and I appreciate that.

31
32
 
 

I would love KDE connect to have screen mirroring and most importantly - answering incoming calls and sending outgoing calls, with auto connect on linux computer login.

I was using phone link followed by intel unison on windows and ofc phone link worked the best. KDE connect comes close but the call function mentioned above still not there.

Im not a tech related person so all I could do is wait patiently for the amazing devs from the sidelines.

33
 
 

Finally it got explicit sync and games on wayland run without this flickering. NICE! This is definitely going to be the year of the linux desktop :D

34
 
 

I got an Archer C7 and i am wondering what to do with it. It already runs openwrt, but we dont need another router.

Are there any recommendations on using a openwrt as Pi-Hole-like thing for example?

35
495
submitted 6 days ago* (last edited 6 days ago) by KarnaSubarna@lemmy.ml to c/linux@lemmy.ml
 
 

Note that DistroWatch is not the only one affected by ban on FOSS related article links on FB.

Further read: https://news.itsfoss.com/facebook-ban-fiasco/

36
37
38
39
41
submitted 5 days ago* (last edited 4 days ago) by hellfire103@lemmy.ca to c/linux@lemmy.ml
 
 

I am looking to switch to a different Linux distribution (or BSD). I currently use openSUSE Tumbleweed, which is quite nice, but I'm having issues with my USB ports and it takes a hot second to boot up.

However, the reason I'm asking here instead of going straight to DistroWatch is that my laptop has a problem. When I turn it on, it bootloops unless it's connected to power when I press the button. As such, this distribution would need to be able to handle running for weeks on end without a reboot.

I could get this repaired or replaced, but I have neither the time nor the money to spare.

So, does anyone have any suggestions? Or should I just slap Fedora Kinoite on it and call it a day?

EDIT: I went for ~~Debian~~ FreeBSD, as well as running fwupd, and it's all working now. Thanks!

40
43
submitted 5 days ago* (last edited 3 days ago) by dunes@feddit.org to c/linux@lemmy.ml
 
 

Does anyone else have this issue with the Flatpak version of Bitwarden.

Explanation: When you update anything in a login item, such as the username or password, and click Save it does not update. You must click Edit agin and then click Save again for it to update.

There is an issues on the Bitwarden GitHub.

41
42
43
 
 

Edit 4: I think I've fixed the issue. I uninstalled vim, deleted ~/.viminfo and /etc/vimrc, then reinstalled vim. I jumped around a file a bit, went in and out of edit mode, and type a bunch of ~ and it didn't jump the text around at all. Still not sure what I did, but it appears this variation of turning it on and off again worked.

I'm hoping someone can help me with this.

I was holding my laptop while I had a vile open in vim, and I slipped, mashing a bunch of keys on the keyboard by mistake.

After doing this, I can't type the ~ character anymore. Anytime I try to type it, it jumps the text to the last line, putting the last line at the top of the editing screen so that's the only line of text showing.

I thought maybe I had set an option that would show up in ~/.vimrc, but there's no ~/.vimrc file. There is a /etc/vimrc file, and a ~/.viminfo file.

I've searched and had no luck finding out what I did to cause this behavior. I also tried looking through the vim manpage and couldn't find any info there either.

Edit 3: I just installed neovim and in neovim it acts as expected when I type the ~. Something I did notice is that in vim, I now have a blinking block cursor in insert mode as well as in visual mode, while in neovim, it's a block cursor in visual mode and a vertical bar cursor in insert mode. I think this was the normal behavior in vim prior to whatever the heck I did.

Hoping someone knows what the heck I did. Thank you!

Edit: clarified what happens when I try to type ~

Edit 2: added details of the .vimrc and .viminfo files

44
 
 

Edit

My question was very badly written but the new title reflect the actual question. Thanks to 3 very friendly and dedicated users (@harsh3466 @tuna @learnbyexample) I was able to find a solution for my files, so thank you guys !!!

For those who will randomly come across this post here are 3 possible ways to achieve the desired results.

Solution 1 (https://lemmy.ml/post/25346014/16383487)

#! /bin/bash
files="/home/USER/projects/test.md"

mdlinks="$(grep -Po ']\((?!https).*\)' "$files")"
mdlinks2="$(grep -Po '#.*' <<<$mdlinks)"

while IFS= read -r line; do
	#Converts 1.2 to 1-2 (For a third level heading needs to add a supplementary [0-9]) 
	dashlink="$(echo "$line" | sed -r 's|(.+[0-9]+)\.([0-9]+.+\))|\1-\2|')"
	sed -i "s/$line/${dashlink}/" "$files"

	#Puts everything to lowercase after a hashtag
	lowercaselink="$(echo "$dashlink" | sed -r 's|#.+\)|\L&|')"
	sed -i "s/$dashlink/${lowercaselink}/" "$files"

	#Removes spaces (%20) from markdown links after a hashtag
	spacelink="$(echo "$lowercaselink" | sed 's|%20|-|g')"
	sed -i "s/$lowercaselink/${spacelink}/" "$files"

done <<<"$mdlinks2"

Solution 2 (https://lemmy.ml/post/25346014/16453351)

sed -E ':l;s/(\[[^]]*\]\()([^)#]*#[^)]*\))/\1\n\2/;Te;H;g;s/\n//;s/\n.*//;x;s/.*\n//;/^https?:/!{:h;s/^([^#]*#[^)]*)(%20|\.)([^)]*\))/\1-\3/;th;s/(#[^)]*\))/\L\1/;};tl;:e;H;z;x;s/\n//;'

Solution 3 (https://lemmy.ml/post/25346014/16453161)

perl -pe 's/\[[^]]+\]\((?!https?)[^#]*#\K[^)]+(?=\))/lc $&=~s:%20|\d\K\.(?=\d):-:gr/ge'

Relevant links

https://mike.bailey.net.au/notes/software/apps/obsidian/issues/markdown-heading-anchors/#background


Hi everyone !

I'm in need for some assistance for string manipulation with sed and regex. I tried a whole day to trial & error and look around the web to find a solution however it's way over my capabilities and maybe here are some sed/regex gurus who are willing to give me a helping hand !

With everything I gathered around the web, It seems it's rather a complicated regex and sed substitution, here we go !

What Am I trying to achieve?

I have a lot of markdown guides I want to host on a self-hosted forgejo based git markdown. However the classic markdown links are not the same as one github/forgejo...

Convert the following string:

[Some text](#Header%20Linking%20MARKDOWN.md)

Into

[Some text](#header-linking-markdown.md)

As you can see those are the following requirement:

  • Pattern: [Some text](#link%20to%20header.md)
  • Only edit what's between parentheses
  • Replace space (%20) with -
  • Everything as lowercase
  • Links are sometimes in nested parentheses
    • e.g. (look here [Some text](#link%20to%20header.md))
  • Do not change a line that begins with https (external links)

While everything is probably a bit complex as a whole the trickiest part is probably the nested parentheses :/

What I tried

The furthest I got was the following:

sed -Ei 's|\(([^\)]+)\)|\L&|g' test3.md #make everything between parentheses lowercase

sed -i '/https/ ! s/%20/-/g' test3.md #change every %20 occurrence to -

These sed/regx substitution are what I put together while roaming the web, but it has a lot a flaws and doesn't work with nested parentheses. Also this would change every %20 occurrence in the file.

The closest solution I found on stackoverflow looks similar but wasn't able to fit to my needs. Actually my lack of regex/sed understanding makes it impossible to adapt to my requirements.


I would appreciate any help even if a change of tool is needed, however I'm more into a learning processes, so a script or CLI alternative is very appreciated :) actually any help is appreciated :D !

Thanks in advance.

45
26
submitted 6 days ago* (last edited 2 days ago) by WeebLife@lemmy.world to c/linux@lemmy.ml
 
 

Hi everyone, I am planning on building a new PC. The only things I'm planning on transferring from my old build are my hard drives. Will I have any problem putting my OS drive with Linux mint right into a whole new PC? My other question is if I use my current Linux OS drive do I have to remove the old GPU and CPU drivers? I'm sticking with an nvidia card but I will be switching from Intel to AMD. I know in Windows you have to use software to fully remove GPU drivers before using a new one.

EDIT: based off the mix of answers, I'm just going to do a clean install to save myself from possible headache. Thanks for the responses!

46
47
 
 

I recently switched from endeavouros to opensuse TW after joining the linux world 4 months ago (im a linux newbie) and i like the distro so far, but there's one catch

There's no sudo apt autoremove equivalent for opensuse and i find it really hard to choose which old .config, cache and other junk files i can delete to save space.

Can someone help me?

48
 
 

For a reason not worth mentioning here, I would like to write a somewhat more complex awk script in which I would have to explain in detail what I am doing. (If only so that I'll still know next week.) There doesn't seem to be a way to wrap a list of conditions in GNU awk, right?

This is what I tried:

command-that-prints-a-table | awk '
    NR>1 &&                # Skip line 1
    NF>2 &&                # Skip lines with only one column
    substr($1,1,1) != "("  # Skip lines that start with a "("
    { print $1 }
'

Alas, that does not work - awk skips the conditions entirely and only runs print $1. It seems that escaping the newlines does not work either, which makes sense as the end of the lines are comments.

This would work:

command-that-prints-a-table | awk '
# - Skip line 1
# - Skip lines with only one column
# - Skip lines that start with a "("
    NR>1 && NF>2 && substr($1,1,1) != "("  { print $1 }
'

But - my original code has a few more conditions - it is rather annoying to read and maintain. Is there an elegant way to fix this?

49
12
submitted 1 week ago* (last edited 1 week ago) by Enragedzeus@lemmy.world to c/linux@lemmy.ml
 
 

Well, as the post states I have a Ethernet port showing unknown after a reboot. Been running for a few years fine. Tried rebooting and restarting the network manager but I’m a loss here. Hardware is a nuc11 with an i7 and 2.5 gbe nic

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    inet 127.0.0.1/8 scope host lo

       valid_lft forever preferred_lft forever

    inet6 ::1/128 scope host noprefixroute 

       valid_lft forever preferred_lft foreverNZB Geek API: HMiN8DoCH6sEeqj7q7UE0Mtg4ewuXrZ6

Planet API: 842708488f4250ba2e98f460de23daa8

Update: I have found the NIC, it’s showing as “unclaimed”.

50
 
 

For a year now I'm dual booting OpenSuse Leap 15.6 with GNOME and Windows 11. I love that there are no trackers, that I have the chance to know what the system is doing, that I can support honest developers, the simple interface, how fast and reliable everything works. I would love to ditch windows for good. So, I hope you'll manage to point me in the right direction with some of my remainig issues

  • I encrypted GRUB and all partitions in OpenSuse. I have a TPM v2 chip. Now, every time I want to access one such partition I need to first enter the root password. I'd like to have access to all my partitions after I unlock GRUB and log in to my OS. Is this something that has to be done in fstab, system.d or somewhere else? If you could point me to some resources, it'd be great!
  • On Windows I'm using Total Commander to select multiple files, invert that selection, sync directories (meaning compare by content, size, copy from left to right, overwrite etc), pack and unpack archives, view, copy, move, rename files. I tried Krusader as a dual-panel manager, but I'm lacking the selection, sync features and it doesn't have the Gnome Look & Feel. If I install TotalCommander using Wine, I can't see the other partitions. Can you recommend a different dual-panel file manager or some way to make TotalCommander see all partitions?
  • Some movies skip frames or stutter. I assume I'm missing some proprietary codecs. How should I check what's missing? I have an AMD RX 6600 XT and haven't installed any special drivers or codecs until now.
  • When I shut down the computer I am logged out, the processes are killed, but then the computer hangs and I hear the fans working, but don't see anything on the screen. Any idea what logs I can tail or search to find what's triggering this or any ideas to fix this?
view more: ‹ prev next ›