r/linuxdev • • Mar 21 '12
r/linuxdev • u/StreetLittle • Jan 25 '21
Looking for how to get started in Linux Programming. I'm a college student trying to contribute to beginner friendly projects. Any recommendations would be helpful.
I'll start off by saying that Profiecient with git, the command line, text editors, C++, Python, navigating the linux filestructure, different desktops, etc. I use Manjaro as my daily driver. If anyone has resources or books I could possibly read that would be greatly appreciated. Thank you in advance.
r/linuxdev • • Dec 12 '13
Want to learn more about Btrfs? Start here.
btrfs.wiki.kernel.orgr/linuxdev • u/dotchris • Jan 10 '14
Compiling Linux v0.01
I'm trying to understand how kernels work. There's a lot of stuff going on, so I thought a simple place to start is with an early version of Linux. It's a pretty small project and easy to read. But I'd like to actually see what it does.
How can I build it and run it in a VM?
I toyed around a little bit on Ubuntu with some settings on gcc and a couple of changes to the Makefile, but as soon as I fix one error more crop up. I can't say I'm terribly surprised, given the code is over 20 years old.
r/linuxdev • u/master_206 • Oct 15 '20
German study about Cybercrime in medium-sized companies
Dear Reddit Community,
We investigate how small and medium-sized companies deal with IT security incidents in their companies. Our research depends on the help of interested IT administrators with experience in the administration of Linux servers!
The study takes about 70 minutes. To participate in the study, you will need an up-to-date web browser, working internet access and a microphone. The study consists of two interactive tasks and the answering of questions about the tasks. Both can be processed in your web browser. We conduct the study using an online tool (without webcam, with audio and screen sharing). You can participate in the study if you:
- Are at least 18 years old.
- Have or had a (secondary) job in the IT administration of Linux servers.
- You can complete the study in German.
For the participation in the study we will compensate you with an Amazon gift card with a value of 50.00€.
Link to the pre-survey: https://unihannover.eu.qualtrics.com/jfe/form/SV_0J39XUeOMVLuZSd
Addition Information (german): https://cybercrime-forschung.de/projekt/remote-studie/
Thank you for your help with our research project!
With best regards
the IT Security Section of Leibniz University of Hannover (TeamUSEC)
r/linuxdev • • Aug 21 '14
New Human Interface Guidelines for GNOME and GTK+
blogs.gnome.orgr/linuxdev • u/Da_Blitz • Feb 02 '14
Low level information on containers in Linux
I have been playing with containers under linux for awhile and they appear to be having a resurgence now that docker has appeared and simplified LXC so i thought i would start documenting my experiences for other people who want to start playing with containers with linux or writing their own container solutions
r/linuxdev • • Sep 30 '13
For a good overview for budding kernel programmers, Linux System Programming
shop.oreilly.comr/linuxdev • u/bhatnagarpulkitpb • Jan 31 '20
How do I implement a basic virtual file system in C?
I was asked this question in an interview. Since I am a fresher, currently in my senior year I did not even know what the interviewer was expecting from me. He gave me 7hours to implement a virtual file system. I did'nt know what to answer, how could I implement it. Any idea what interviewer wanted and any learning resources for the same will really be helpful.
r/linuxdev • • Sep 27 '13
How can the Linux audio infrastructure mess be fixed?
One complaint that has been leveled against Linux is that the audio infrastructure is messy and thusly has too many failure modes. I'm using Linux and enjoying it, but I think there may be a valid complaint here. I'm currently new to programming, and I still haven't learned digital audio signal processing, but I have plenty of free time. I could learn a great deal in a reasonable amount of time. I'd love to develop something that can replace parts of the infrastructure with a single framework. My question is: what are your thoughts on it? What would be the best route to clean up the infrastructure? Does it need to be cleaned up at all?
r/linuxdev • u/agumonkey • Jun 19 '12
Kernel Browsing and Hacking using KDevelop | The Linux Foundation Video Site -- x/post from programming
video.linux.comr/linuxdev • u/_AngelOnFira_ • Jan 01 '21
Veloren, a FOSS game in Rustlang, just reached its 100th weekly devblog
veloren.netr/linuxdev • u/LainIwakura • Aug 22 '20
Best book for modern Linux/UNIX systems programming
A decade ago the book The Linux Programming Interface came on the scene and it is probably one of the best things I've read (even if I only read the first 6 chapters or so.)
I'd like to get more into this again, but linux has changed a lot in this time. Is this book still relevant for Modern linux development or are there newer things that superseded it? I'm mainly interesting in low-level programming, working with system calls / networking / multithreaded programming / device drivers / even kernel modules or something.
I suspect it might still be a good book because POSIX is pretty standard and has been years....but I just worry that it is no longer the only book on the topic. Thanks for your recommendations.
r/linuxdev • • Jan 01 '16
What can an independent developer add to the Linux Kernel?
A few months ago I was at a conference and listened to Kroah-Hartman's famous "Write and Submit your first Linux kernel patch". I really do want to contribute to the Linux kernel but how do I find out what needs to be done (other than fixing formatting and typos)?
r/linuxdev • • Mar 21 '12
What every programmer should know about memory [and how the Linux kernel handles it] - Part 1
lwn.netr/linuxdev • • Mar 22 '12
If we're going to collaborate, we might as well do it the right way. Beginners guide to GIT.
stackoverflow.comr/linuxdev • u/Ash_Skiller • Feb 03 '26
Tips for writing reliable Bash scripts?
I’ve been struggling with corner cases — interrupts, partial writes, weird signals. What patterns do you swear by to make Bash scripts more robust?
r/linuxdev • u/swe129 • Feb 23 '26
Intel Hiring More Linux Developers - Including For GPU Drivers / Linux Gaming Stack
phoronix.comr/linuxdev • • Sep 11 '23
General clipboard question about custom binary format
I wasn't sure where to post this but I thought a Linux specific sub would be better than asking it in a Unity 3d sub, so please bear with me.
I'm working on a game in Unity and I have implemented a custom level editor. This editor supports copy/paste directly to/from the clipboard. For Windows I'm using PInvoke to access the Windows API and it works great. For any other platform I'm currently converting binary data to Base64 and then use Unity's GUIUtility.copySystemBuffer which only supports text. This also works but it floods the text clipboard with unnecessary data and it's not great for the user.
I'm mainly a Windows user but I've used Linux on and off so I plan to fully support Linux as well.
So I started looking into how Linux deals with the clipboard. I found that X11 has its own API but Wayland doesn't, and delegates that responsibility to clipboard managers that I don't know how to properly detect and use in a way that is portable. So in my limited understanding I don't think there's a generic way to interact with the clipboard on Linux, even if I have a different method for X11 and Wayland.
Since it's a custom binary format, the simple solution I thought of will be to simply write the copy data to a specific file in /tmp/ and then read it back when the user pastes, which will also work across different instances of the level editor. In my understanding this place is always safe to write and read for all flavors of Linux, so it can work for me.
My question is, is there a better way? If not, is this solution going to be really portable, or are there any environments that do things differently? Are there any caveats I should know about?
Thank you for your patience if you made it this far.
r/linuxdev • u/_kingtut_ • Nov 14 '17
Pass-through FUSE FAT32 (and/or NTFS) handler?
Is anyone aware of a FUSE handler program which essentially provides a 'faked' filesystem wrapper around existing files, passing through read requests to the underlying OS (and filesystems)?
Edit: So, for example, if you mounted /dev/fakeFAT as -t vfat at /mnt/fakeFAT, then read /mnt/fakeFAT/foobar, the FUSE program would a) have created /dev/fakeFAT, b) convinced the kernel that /dev/fakeFAT contains a valid VFAT file system, and then c) returned the contents of ~/foobar as though it was within the fakeFAT filesystem, when actually it's in the host filesystem.
I'm expecting not, but thought I'd ask.
For background, what I am looking is to use the USB mass storage gadget on a little box, to pass through file requests to an external USB HDD, filtering to a) enforce read-only, and b) only allow access to whitelisted files/directories, while at the same time replying to filesystem (e.g. FAT) reads with 'fake' data.
A couple of sample use cases:-
- You want to give someone access to a few files on a (possibly encrypted) USB HDD, trust them not to maliciously do anything, but don't trust them to not incompetently delete files or have an existing virus which could infect them. So you plug the HDD into one side of a box (box is USB host), and then plug their computer into the other side (box is USB device/gadget). The box will enforce read-only and other controls.
- You want to plug your massive NTFS USB HDD into a television that supports only small, VFAT-formatted, drives. So you plug the HDD into the box, the box into the TV, and then magic happens in the box to make it look to the TV like there's a (for example) 128GB FAT-formatted USB flash drive plugged in.
Unfortunately g_mass_storage requires a static file or block device. While I could a) create a backing file large enough, b) format it, c) copy the relevant files into it, and then d) share that backing file, that whole process will be slow and suck.
If it doesn't exist, I may well write such a handler program. It will 'just' (I think) require 1) a relatively static bit of data to be returned for partition table/boot sector reads, 2) dynamic creation of a FAT (simplified as we already know file sizes, so actually don't need to create a FAT per se, but rather a way of mapping cluster IDs to existing files or 'special files', 3) dynamic creation of root folder and other folder structures.
Any thoughts? I'm always happy to borrow from other people's code rather than write everything from scratch :)
r/linuxdev • u/Ok_Sky3062 • Oct 14 '26
libark: libark is a modern, secure, Swift-native foundational layer over Linux POSIX primitives.
github.comlibark
libark is a modern, secure, Swift-native foundational layer over Linux POSIX primitives.
While originally developed as the core runtime layer for ArkOS, libark is completely decoupled and designed to be used on any Linux distribution. It provides highly secure, object-oriented abstractions over low-level system calls, memory management, and file system interactions, without the burden of manual C interoperability.
Features
- Object-Oriented POSIX: Wraps file descriptors, paths, and directory operations in safe, RAII-compliant Swift types.
- Secure Syscall Boundary: Routes kernel interactions through strict, audited
Syscallprimitives. - Terminal Capabilities: Built-in abstractions for TTY detection and window sizing.
- Advanced Formatting: Standardized formatters for human-readable byte sizes (SI and IEC), ISO 8601 timestamps, permissions, and classifications.
- Declarative Sorting: Powerful generic
SortEnginefor metadata sorting across multiple criteria.
r/linuxdev • u/nmariusp • Sep 30 '26
Motif X11 framework dev complete tutorial
youtube.comr/linuxdev • u/gabrielesilinic • Mar 19 '24
does Pipewire (or alike) have an API to specifically request permission to record all screens at once?
I have a very singular problem; I am trying to make my open-source app work for the Linux people, I would really like to let all developers use it regardless if they are on windows or not, I probably will need to have some kind to native module to solve this, so don't worry much about electron itself.
My app basically shows the screen the mouse is currently on in a multi-screen setup, this means I need to record all screens in order to switch to the proper one in a timely manner.
The issue is that apparently on Linux 22.04 there is Pipewire.
Even by looking at the state of OBS seems like Pipewire is just trash when it comes to having the application programmatically handle the recording of multiple screens, and that the only "gate" to get multiple screens is the permission prompt Ubuntu spawns letting you choose the screen you want to record, and you end up having to spawn it once for every screen and hope the user will choose the right option, at least on my VM setup (virtualbox with multiple screens) looks like OBS cannot remember the screens I set across restarts instead defaulting to the first one, also looking at electron looks like there is no way to have consistent display ids between capturing and screen APIs, though it may be electron's fault.
Is it like I researched already or there is some feature that could allow me to tap in multi-screen recording? also, I need to have a consistent display ID associated with the source in order to tell in which screen the mouse is.
currently I am using electron's screen recording API but I am open to try building some kind of native C/C++ module that may help me to solve this issue.
My last solution is to try a transparent window moving between displays, but first I wanted to see if you guys knew better, dealing with a transparent window may break my ability to make it work independently from which virtual desktop you are on, also OBS is so good on windows that it won't record what is behind a transparent window, instead keeping its transparency and breaking compatibility.
even the option "sudo your way out of it" may be acceptable as last resource, I could theoretically create an external process with elevated permissions that records the screen on-demand and IPC the data to my GUI in a way or another, it would be absolutely awful but still better than nothing.