Linux

49393 readers
1748 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
 
 

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?

3
4
5
25
submitted 9 hours ago* (last edited 7 hours 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.

6
22
submitted 13 hours ago* (last edited 10 hours ago) by harsh3466@lemmy.ml to c/linux@lemmy.ml
 
 

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

7
8
421
submitted 1 day ago* (last edited 1 day 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/

9
 
 

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.

10
25
submitted 1 day ago* (last edited 1 day ago) by N0x0n@lemmy.ml to c/linux@lemmy.ml
 
 

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.

11
 
 

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?

12
13
 
 

I still like the look and feel of GNOME a lot so I spent a little time putting it together that way. I want a simple desktop with small elements to maximize real estate for windows. I also use the small taskbar on my work computer for the same reason. But with my work computer, I do show window titles because I usually have at least 5 workbooks open at once so it's nice to see which is which when I need to switch between them.

I love KDE's application launcher. It feels very Windows XP with the way it sorts things. It just makes complete sense.

Century Gothic may not be the most readable font in the world, but I think it has an old school charm to it.

14
 
 

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?

15
 
 

Windows refugee here. I'm planning to move to Linux Mint but want to make sure I don't do something stupid, as I'm unfamiliar with the Linux operating system.

I found this link with 10 tips to secure Mint.

Is this a good list? Anything else I should do to secure a Mint install?

Thanks for helping a noob!

16
17
91
submitted 2 days ago* (last edited 1 day ago) by mfat@lemmy.ml to c/linux@lemmy.ml
18
13
submitted 1 day ago* (last edited 1 day 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”.

19
20
21
 
 

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?
22
23
24
25
 
 

Hello, I've been hearing a lot about this new DeepSeek LLM, and was wondering, would it be possible to get the 600+ billion parameter model running on my GPU? I've heard something about people have got it to run on their MacBooks. I have i7 4790K, 32GB DDR3, and 7900 XTX 24GB VRAM. I'm running Arch Linux, this computer is just for AI stuff really, not gaming as much. I did tried running the distilled 14B parameter model, but it didn't work for me, I was using GPT4All to run it. I'm thinking about getting one of the NVIDIA 5090s in the future. Thanks in advance!

view more: next ›