/r/linux

Photograph via snooOG

Welcome to /r/Linux!

This is a community for sharing news about Linux, interesting developments and press.

If you're looking for tech support, /r/Linux4Noobs and /r/linuxquestions are friendly communities that can help you.

Please also check out:

https://lemmy.ml/c/linux and Kbin.social/m/Linux

Please refrain from posting help requests here, cheers.

GNU/Linux is a free and open source software operating system for computers. The operating system is a collection of the basic instructions that tell the electronic parts of the computer what to do and how to work. Free, Libre and open source software (FLOSS) means that everyone has the freedom to use it, see how it works, and change it.

GNU/Linux is a collaborative effort between the GNU project, formed in 1983 to develop the GNU operating system and the development team of Linux, a kernel. Linux is also used without GNU in embedded systems, mobile phones, and more. These can include things like Android or ChromeOS. GNU itself is also used without Linux, some examples appear in projects like Debian/kFreebsd and Guix GNU/Hurd.

Join us on IRC at #r/linux on libera.chat!🔗

Frequently Asked Questions

Recent AMA's

GNU/Linux resources

GNU/Linux Related:

Distributions:

Debian based

RedHat

Unique

Linux with Proprietary Elements

Embedded

Linux on Mobile:

  • Jolla (SailfishOS)
  • PostmarketOS
  • Replicant🔗
  • ZeroPhone
  • Movements:

    Desktop Environments:

    Window Managers:

    Fluff

    Learning/resources

    Creativity:

    Help

    Webcasts:

    Other operating systems:

    Rules

    Please review full details on rules here.. All rules will be applied regardless of the number upvotes a post/comment has.

    • No support requests - This is not a support forum! Head to /r/linuxquestions or /r/linux4noobs for support or help. Looking for a distro? Try r/findmeadistro.

    • No spamblog submissions - Posts should be submitted using the original source with the original title. Posts that are identified as either blog-spam, a link aggregator, or an otherwise low-effort website are to be removed. Some reasons for removal are that they contain re-hosted content, usually paired with privacy-invading ads. If there's another discussion on the topic, the link is welcome to be submitted as a top level comment to aid the previous discussion. Please see: r/linux/wiki/rules/banneddomains

    • No memes, image macros, rage comics, overdone jokes - Meme posts of any kind are not allowed in r/linux. Feel free to post over at /r/linuxmemes instead. This rule can also apply to comments, including overdone jokes, comment-chain jokes, or other redditisms that are popular elsewhere.

    • Reddiquette, trolling, or poor discussion - r/linux asks all users follow Reddiquette. Reddiquette is ever changing, so a revisit once in awhile is recommended. Top violations of this rule are trolling, starting a flamewar, or not "Remembering the human" aka being hostile or incredibly impolite. Additionally, sexism/racism/other isms are not allowed. See also: /r/linux/wiki/rules/userconduct

    • Relevance to r/linux community / Promoting closed source applications over FOSS - Posts should follow what the community likes: GNU, Linux kernel, developers of open source software, or other applications on Linux. Take some time to get the feel of the subreddit if you're not sure!

    • Spamming self-promotion, surveys, crowdfunding - Submitting your own original content is welcome on r/linux, but we do ask that you contribute more than just your own content to the subreddit as well as require you to interact with the comments of your submission. We set that no more than 10% of your posts should be your content. Please be aware that this does not supersede other rules. Additionally, surveys for your blog/news source/paper/own use are not allowed. Please see /r/linux/wiki/rules/crowdfunding for those crowdfunding..

    • No misdirecting links, sites that require a login, or URL shorteners - In short: if your link doesn't go right to the content it will be removed. Sites that require a login to view the content are not allowed in r/linux. Example: A private Facebook post or a news organization that doesn't have free article views. URL shorteners and links that misdirect users to ads/jokes are also banned. See a list here, although the mods will make a decision on a per domain basis as needed: /r/linux/wiki/rules/banneddomains

    • No NSFW - No NSFW links or images without mod approval. No discussion that is overly-suggestive to what is normally considered NSFW.

    • Non-useful Image Upload/Fluff Image - Images of "Linux in the wild", plushies, Tux, and more are not encouraged for posting as a top level submission. If necessary, this can apply to comments too at mod discretion. The image/video upload feature is for posts regarding features/guides/etc. See also: Meme rule.

    See even more subreddit and external links over at the supplemental page

    This subreddit is fan ran and not affiliated with any organization.

    /r/linux

    1,488,005 Subscribers

    0

    Need Advice on Developing an Executable Sandbox for Behavior Monitoring

    Hey everyone,

    I’m working on a project to create a sandbox that can run files in a contained environment and monitor behaviors like file modifications, network calls, and memory access. The idea is to capture these behaviors and save them in a "blueprint" data structure for later analysis.

    Here’s what I’m trying to achieve:

    1. Run files safely within a sandbox to keep the host system secure.

    2. Track file, network, and memory behaviors.

    3. Save the observed behaviors in a compact data structure, acting as a fingerprint for each process.

    Main challenges:

    - How to ensure containment so the executable doesn’t affect the host system.

    - How to structure the blueprint data in a way that’s both detailed and efficient.

    - Choosing between Go or C++ for a low-level, efficient approach.

    If you’ve worked on something similar or have any resources or tips, I’d love to hear from you! Thanks!

    2 Comments
    2024/11/08
    07:05 UTC

    0

    Script to disable/enable HID touchscreen on a laptop (w/Wayland)

    Hi all,

    I was trying to figure out an easy way to disable my laptop's touchscreen with Wayland, and it turns out it's not easy.

    When Wayland replaced the X11 server, XWayland apparently didn't support existing applications like xinput, which were previously used for a lot of things, among them controlling input devices like a touchscreen.

    So far as I've been able to figure out, the only way to disable a touchscreen with Wayland is to unregister the touchscreen device itself from the HID driver. This is a bit of a painful process, so I made a shell script to try to automate it as much as possible.

    I try to detect the touchscreen two ways: 1) looking through /proc/bus/input/devices, and 2) looking through /var/log/syslog and /var/log/dmesg, for a device with 'Touchscreen' in the name. The HID driver can be detected at disable time, but I can't detect it again at enable time, so the user will have to pass it along as an option or hard-code the option.

    (On internet forums people recommend disabling a specific driver like 'hid-multitouch', but actually on my system, 'hid-multitouch' is used by the Elan touchpad, whereas the touchscreen is a Wacom device, using the 'hid-generic' driver)

    It's definitely not fool-proof, but it might work for others. It works for me on Ubuntu 24 on a Lenovo ThinkPad Z13 w/touchscreen. Here's the code: https://gist.github.com/peterwwillis/0912a8acb9f1464c0a99b569bf1f327c

    5 Comments
    2024/11/08
    04:10 UTC

    0

    How many times have you accidentally messed up your installation?

    Today marks my 6th time. I tried installing a driver off of Nvidia's website and it messed up the graphics drivers up. The last time I messed it up (2 weeks ago), (this may sound stupid) I accidentally uninstalled the DE when I was installing something for Davinci Resolve. How many times have you messed up your installation?

    38 Comments
    2024/11/07
    20:14 UTC

    336

    I'm curious - is Linux really just objectively faster than Windows?

    I'm sure the answer is "yes" but I really want to make sure to not make myself seem like a fool.

    I've been using linux for almost a year now, and almost everything is faster than Windows. You technically have more effective ram thanks to zram which, as far as I'm aware, does a better job than windows' memory compression, you get access to other file systems that are faster than ntfs, and most, if not every linux distro just isn't as bloated as windows... and on the GPU side of things if you're an AMD GPU user you basically get better performance for free thanks to the magical gpu drivers, which help make up for running games through compatibility layers.

    On every machine I've tried Linux on, it has consistently proven that it just uses the hardware better.

    I know this is the Linux sub, and people are going to be biased here, and I also literally listed examples as to why Linux is faster, but I feel like there is one super wizard who's been a linux sysadmin for 20 years who's going to tell me why Linux is actually just as slow as windows.

    Edit: I define "objectively faster" as "Linux as an umbrella term for linux distros in general is faster than Windows as an umbrella term for 10/11 when it comes down to purely OS/driver stuff because that's just how it feels. If it is not objectively faster, tell me."

    292 Comments
    2024/11/07
    05:49 UTC

    909

    Wiped 17 years worth of my life by reformatting wrong disk

    Waking up today with a headache from drinks yesterday and urgent missed calls. I see one of my VMs finished benchmark tests and proceed to reformat the SSD to proceed with next steps.

    I wiped the wrong SSD.

    I used to be a photographer, videographer, competitive ballroom dancer, and avid traveller chronicling asian silk road communities.

    17 years poof because I woke up on the wrong side of the bed.

    P.S. always check your disk numbers and connectors especially if you have 4 of the exact same SSDs.

    P.P.S. Thanks for reaching out y'all. Brothers and sisters, I'm in asia, costs of everything is skyrocketing with the temperatures. Electricity costs are nuts now. Can't afford cloud. I do have 20+ HDD archives, but not everything is on them because those are slow platters designed for long term disconnected cold storages (Toshiba drives)

    271 Comments
    2024/11/07
    03:11 UTC

    318

    Will wayland completely replace Xorg?

    I saw that there were too many command line "x" tools made that interact with Xorg server. Will wayland be capable to replace every single one? Or, is there a compatibilty layer with full support that we will still be able to use all the X tools?

    325 Comments
    2024/11/06
    14:26 UTC

    32

    Is there any working phone software for linux?

    I can setup SIP and have that ready.

    Life would be easy for me if i could recieve phonecalls to my business phoneline in my linux laptop. Tried Jami and Bria but that doesn't work for incoming calls to a phonenumber. Atleast not for me and my potential skillissues.

    After going fulltime linux November last year, this is the absolute only thing i'm missing from Windows. I REFUSE to ever touch anything windows related again.

    EDIT: Forgot to mention i'm on wayland btw!

    update: Linphone seems to work, some crashes for some reason.

    Zoiper is x11 only.

    32 Comments
    2024/11/05
    13:35 UTC

    433

    [OC] Introducing iwmenu: A menu-driven interface for managing Wi-Fi on Linux

    25 Comments
    2024/11/05
    12:44 UTC

    8

    From Personal Portfolio to Community Hub: A Platform for Linux, DevOps, and CyberSec

    The project, which began as my portfolio, is evolving into a community support space. Initially, the idea was to create something that would aid me on my learning path, but it has now grown into something I hope can benefit a broader community. The goal is for this platform to be useful to everyone—entirely non-profit and open to anyone who wishes to contribute, in whatever way they can.

    If you’re a Linux engineer, DevOps, or Security professional, and you’re interested in sharing knowledge and experiences, I invite you to join.

    PS: Feel free to share suggestions, comments, critiques, improvements, etc.

    Thanks in advance to everyone.

    Site: https://www.linuxsecops.org/

    0 Comments
    2024/11/04
    19:55 UTC

    2

    screen vs. tmux

    I have a project where I have to share my terminal with several users. I'm using SLES 15 SP6. I'm using Linux for several years but never had the requirement to share my session (I'm also surprised that this was not needed earlier :D). I came across screen and tmux but all the comparisons I found were using older versions. What are your experiences with these tools and why do you prefer which tool? Thank you very much.

    40 Comments
    2024/11/04
    13:01 UTC

    0

    Richard Stallman on the removal of Russian Linux maintainers

    66 Comments
    2024/11/04
    12:07 UTC

    68

    YaruX - My Very First Linux Project

    I only utilized github in the past to store my school projects or make a mockup project. I'm clearly a beginner at these game.

    Here is the link of my repository. Your comments and suggestions will boost my knowledge in this game.

    https://preview.redd.it/fmuqm8xs8vyd1.png?width=889&format=png&auto=webp&s=9d90226a2824cbe0fe9bef3ebaf7ef26be18def9

    11 Comments
    2024/11/04
    10:36 UTC

    Back To Top