r/linux_programming • • Apr 09 '16

Hydra: Password Cracking Tool (Summary, Tutorial and Resources)

Thumbnail
meonsoft.blogspot.com
7 Upvotes

r/linux_programming • • Mar 13 '15

Memory management when failure is not an option

Thumbnail
lwn.net
7 Upvotes

r/linux_programming • • Feb 06 '15

release Git 2.3 has been released

Thumbnail
github.com
7 Upvotes

r/linux_programming • • Jan 31 '15

Kernel booting process. Part 3.

Thumbnail
github.com
7 Upvotes

r/linux_programming • • Jan 05 '15

Linux internals: Kernel booting process. Part 1.

Thumbnail
github.com
7 Upvotes

r/linux_programming • • Dec 29 '14

GNOME Builder, an IDE of our GNOME, Fundraiser

Thumbnail hergert.me
7 Upvotes

r/linux_programming • • Nov 29 '14

question Beginning Linux Development

7 Upvotes

Hi all,

I'd like some advice on taking a structured approach to delving into Linux development. At some point, I'd like to learn a bit more about the kernel too. For a bit of background, I've been using Linux on/off from a young age for around 10ish years -- but not much beyond being a basic end user. I'm happy to say I'm using Linux full time again now. I've done a Software Engineering degree which over here in Australia is basically a longer Comp Sci degree, and ended up working as a .NET developer (a fairly large Win Forms client/server enterprise environment) for a couple of years. I got bored of that, and my interest in higher-level languages and particularly Windows based stuff has waned substantially. I've also coded a little C/C++ previously, but nothing substantial -- mostly during my degree. I've also done some Java, but didn't find it very engaging.

So, here are the areas I'm interested in:

  • General linux stuff (I've learnt a bit over the years, but I feel like my knowledge is quite patchy and there are plenty of gaps to fill in, hence a structured approach)

  • C Programming and possibly assembly, too (I took a compiler design course which I found quite interesting, even though it was very rudimentary)

  • Linux kernel architecture

  • Kernel development (potentially at some point)

  • Reverse engineering

Is the list above a good, ordered approach to take? I would like some recommendations on books or other resources if possible. I've picked up a copy of C Programming: A Modern Approach 2nd Edition, which I'm sure will give me plenty to (re)learn for now. What would be some good kernel related resources to start with? I've noticed that some linux kernel books are 'old', is this much of an issue? For 'general linux stuff' (vague, I know) -- I was thinking maybe the book How Linux Works? Maybe even a good book on operating system design and concepts would be helpful. I did take a course on this topic, but have long forgotten much of the content. I'm hoping to pick things back up relatively quickly.

Maybe instead of rushing in too quickly into kernel stuff, I stick to some application development first?

I know the above seems a little vague and perhaps hard to respond to. There seems to be a lot I'd like to learn, and it seems a little overwhelming on how to decide on the best approach to take. I've provided details on my existing experience, as I'd like to delve right in (at a comfortable pace, however) and would like to avoid having to waste time on books that cover really basic level programming. Any advice would be very much appreciated.

Cheers


r/linux_programming • • Nov 24 '14

memfd_create(2): an easy way to get a file-descriptor for anonymous memory, without requiring a local tmpfs mount-point.

Thumbnail
dvdhrm.wordpress.com
7 Upvotes

r/linux_programming • • Aug 28 '14

The 2014 Kernel Summit

Thumbnail
lwn.net
7 Upvotes

r/linux_programming • • Aug 22 '14

Kernel Tracing Using Ftrace

Thumbnail
blog.fpmurphy.com
7 Upvotes

r/linux_programming • • Aug 22 '14

POLLOUT doesn’t mean write(2) won’t block: Part II

Thumbnail
rusty.ozlabs.org
7 Upvotes

r/linux_programming • • Aug 21 '14

fork() can fail: this is important

Thumbnail rachelbythebay.com
7 Upvotes

r/linux_programming • • Apr 13 '14

Sysdig vs DTrace vs Strace: a Technical Discussion

Thumbnail
draios.com
7 Upvotes

r/linux_programming • • Jun 03 '26

GitHub - xyurt/udp-wrapper: A simple C89 style sockets wrapper for exclusively udp operations with a simple API.

Thumbnail
github.com
6 Upvotes

I made a udp sockets wrapper that works with both UNIX and WIN32 and I think it turned out to be great. Im not an expert on UNIX headers and functions which are in the 'unix.c' file. So I would appreciate any feedback.


r/linux_programming • • Apr 27 '26

How Hard Is It To Open a File?

Thumbnail blog.sebastianwick.net
6 Upvotes

r/linux_programming • • Sep 07 '25

Need a C# environment similar to the one in my university

6 Upvotes

So this year I started going to university and we are being taught C#, the problem is that we are being taught on Microsoft Visual Studio using .NET 4.8.1 and C# version 7.3. Since I’m using linux fedora I don’t really know how or if it’s even possible to set up a C# in which I can comfortably write code that I know will run on the windows machines used by my lecturers or at the classes. I tried dual booting with windows but it can’t find my internet drivers for some reason so before I fully commit to the suffering that is windows 11 I wanted to know if I really have to.

Also I’m not sure if this is the right place to ask so if it isn’t I’d appreciate if you could tell me (even if its some forums), I need to set this up because the programming tasks are due Thursday.


r/linux_programming • • Jul 29 '25

I built rewindtty: a C tool to record and replay terminal sessions as JSON logs (like a black box for your CLI)

Thumbnail
github.com
6 Upvotes

r/linux_programming • • Jun 29 '25

How to handle a split UDS/UDP message?

6 Upvotes

I'm building a high velocity distributed database in Rust, using io_uring, eBPF and the NVMe API, which means I cannot use 99% of the existing libraries/frameworks out there, but instead I need to implement everything from scratch, starting from a custom event loop.

At the moment I implemented only Unix Domain Socket/UDP/TCP, without TSL/SSL (due to lack of skills), but I would like to make the question as generic as possible (UDS/UDP/TCP/QUIC both in datagram and stream fashion, with and without TLS/SSL).

Let's say Alice connect to the database and sends two commands, without waiting for completion:

SET KEY1 PAYLOAD1

SET KEY2 PAYLOAD2

And let's say the payloads are big, big enough to not fit one packet.

How can I handle this case? How can I detect that two packets belong to the same command?

I thought about putting a RequestID / SessionID in each packet, but I would need to know where a message get split, or the client could split before sending, but this means detecting the MTU and it would be inefficient.

Which strategies could I adopt to deal with this?


r/linux_programming • • Apr 25 '25

Any advice for developing and adding to oss linux software with no degree/selftaught?

6 Upvotes

I mean 'adding to oss linux software' as in contributing to their code on github or gitlab for example.

I have no degree and unable to get one, so is there any way at all I can get into being a devloper for linux software. for example, by contributing?


r/linux_programming • • Feb 07 '25

Roadmap for learning Linux

6 Upvotes

Hi guys, I have installed Arch Linux, started ricing and now I'm trying to dive deeper into this operating system.

After researching about learning resources, I have decided my study path is:

  1. How Linux Works (to have an overview about how everything works together, not too deep but quite enough for a newbie) (Trying to done this in 10 days)

  2. The Linux Command Line (to become an advanced user who can read and write script by self) (2 months)

  3. Linux Bible (to achieve more knowledge, much deeper) (2 months)

  4. The Linux Programming Interface (I'd love to write programs in Linux) (2 years)

And after become Linux master, maybe I will give a glance to Linux kernel. Can you guys give me some advice? Thanks for that.


r/linux_programming • • Aug 07 '24

Docker, Wireguard, Iptables, and Forwarding Question

6 Upvotes

I have the following rules in a wireguard docker container:

docker exec wireguard sh -c "
  # Clear existing rules
  iptables -F
  iptables -t nat -F
  iptables -X
  iptables -t nat -X

  # Set up new rules
  iptables -t nat -A PREROUTING -d ${WIREGUARD_IP} -j DNAT --to-destination 10.10.10.2
  iptables -t nat -A POSTROUTING -s 10.18.0.0/16 -o wg0 -j MASQUERADE
  iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o eth0 -j MASQUERADE
  iptables -A FORWARD -i eth0 -o wg0 -j ACCEPT
  iptables -A FORWARD -i wg0 -o eth0 -j ACCEPT

  # Ensure IP forwarding is enabled
  echo 1 > /proc/sys/net/ipv4/ip_forward
"

The container eth0 is at 10.18.0.2. The wireguard interface wg0 is at 10.10.10.1. Data is forwarded from eth0 to wg0 and I see it on the client side.

Data being received by the wireguard container (10.18.0.2) can be from various containers at 10.18.1.0, 10.18.2.0 etc. The ports however will be unique which is key for my application. On the client side, I only care about the ports. When the client side app responds though, it sends it to the wireguard connection with the correct port, but the ip needs to be switched to the correct container (10.18.1.0, 10.18.2.0 etc.) How can I achieve this and is it possible? Thanks.


r/linux_programming • • Jul 20 '24

Looking for a way to gain some knowledge in unix/linux

6 Upvotes

Any recommended courses or YouTube videos for a complete beginner that want to gain knowledge fast? I would like to start from the basics and understand why the hell Linux in the first place then go into applications and do some projects. Your recommendations are appreciated


r/linux_programming • • Jul 10 '24

Xlib XDestroyWindow causes crash

6 Upvotes

I have a simple Xlib window manager written in C++ and so far everything is working fine except for handling when windows are destroyed. In the event that an application window is destroyed I attempt to search for its parent window to also destroy. However, upon any window being destroyed the display disconnects from the X server and I get an error saying:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Resource id in failed request:  0x80000c
  Serial number of failed request:  8336
  Current serial number in output stream:  8359

The only time I change window attributes is when I create the frame window and set the override_redirect attribute to true which works when running the window manager.

The code can be found on GitHub


r/linux_programming • • Dec 21 '23

Writing graphics programs

6 Upvotes

is there any way to access the intel/amd graphics devices directly or are their APIs only available to kernel modules?