r/linux_programming • • May 16 '26

I've made progress on my C++ software but there's still a long way to go

9 Upvotes

I'm building a C++ code generator that helps build distributed systems. It's implemented as a 3-tier system. The back and middle tiers only run on Linux. The front tier is portable. It's free to use. Each of the tiers use this library.

My comments in this thread provide some more context. Please let me know what you suggest to improve matters. I think "rustifying" the code would be a good idea. Stars on my repo are appreciated. Thanks in advance.


r/linux_programming • • May 25 '25

Beginning this

9 Upvotes

So I'm interested at learning linux systems programming. I've done a fair amount of C and C++ programming. School is not an option.

I wonder if I might get some solid books and/or Udemy or other online courses recommended as a starting point to learn from. I've read K&R a few times.

Thank you in advance


r/linux_programming • • Dec 10 '23

how does one make a desktop environment ?

9 Upvotes

I want to make a desktop with Xorg I don't know anything about Xorg but am willing/wanting to learn can people point me to where I should start ?
Also I choose Xorg because I heard Wayland is very limiting is this detrimental or should I use Wayland ?


r/linux_programming • • Jun 03 '23

A high performance embedded database

9 Upvotes

This database is for C/C++ programmers.

  • It supports RDBMS model: DB, Table, Index, Cursor, etc.

  • It supports transaction.

  • It supports table schema auto-upgrade.

  • It supports ISSU.

More to be discovered. Please have a try and share with your friends.

https://crossdb.org/


r/linux_programming • • Apr 15 '23

FOSS alternative to VS CODE for Arch Linux

9 Upvotes

Hi there,
I've been using VScode for some times, because there are some things I like to use, SASS live compiler for example, or a built in console with ctrl+j.

What are the alternatives there? VScodium is still Microsoft as far as I know, not sure about CODE OSS,

I want be to add extensions and have highlighting, emmet and autocompletion etc.


r/linux_programming • • Apr 12 '23

The Free Software Foundation is dying

Thumbnail drewdevault.com
9 Upvotes

r/linux_programming • • Apr 04 '23

Even if you can't write assembly like a poet, you can read disassembly like a hunter

Thumbnail wordsandbuttons.online
9 Upvotes

r/linux_programming • • Mar 24 '23

Converting Engines to OpenSSL-3 Providers

Thumbnail blog.hansenpartnership.com
9 Upvotes

r/linux_programming • • Dec 01 '22

SSD Benchmark Tool for Linux

9 Upvotes

Most of the SSD benchmarks you see out there use solely Crystal Disk Mark for Windows on an empty SSD. This allows to show speeds of 300~550MB/s (SATAIII), which is amazing compared to most HDDs.

However, there are some cases where this trend is overestimated or even in reverse. Take a look: imgur picture
To do this test, people usually copy several GBs in Windows and plot the transfer speed.

I'm aware of several tools in Linux to benchmark disks (ex: hdparm, dd, GNOME disks, fio, kdiskmark, ...). However, I don't know of a tool in Linux that makes the above graph (ie: speed vs time).

Question
Is there a tool in Linux to measure speed vs time or speed vs space usage?


r/linux_programming • • Apr 21 '22

Script to create subfolders

9 Upvotes

I'm using Linux and I have a folder called "rttm" which contains some files suffixed with ".rttm" extension, such as:

/rttm/
    a.rttm
    b.rttm
    etc

I'd like to write a shell script that iterates through each file of the "rttm" folder and create a folder called "rttms" where files (which are a copy of their respective in "rttm" folder) are organized in subfolders following a structure like:

/rttms/
    /a/
        a.rttm
    /b/
        b.rttm
    etc

How could I do?


r/linux_programming • • Mar 07 '22

Good resources on writing loadable kernel modules.

9 Upvotes

Just looking for some recommended resources to get started in writing kernel modules.


r/linux_programming • • Dec 21 '21

First time programming on C (Need Help)

9 Upvotes

I have recently started to learn by myself programming on C/C++ (I have no prior experience with programming) and i have been trying to use VisualCode as my Code Editor. I have tried to do the classic "Hello World!" program as my first but i don't know how to execute it.


r/linux_programming • • Dec 19 '21

How to write a d-bus service being human

9 Upvotes

Hi, I want to create a d-bus service but most of the examples are on Vala(or C) and Python. I'm not proficient in any of this languages so I decided to search for other d-bus bindings. I found almost no information on other languages, most of the libraries are incomplete, or they don't have documentation or they just don't work. Any suggestions on this?


r/linux_programming • • Nov 24 '21

Convenient Utils Linux. Not many but convenient to use daily. Now I can see all users with 5 typed chars (showu) instead of 23 (using cut) haha. It's magical. I love 'showus', showing total file size&count in dirs, for various users. Some others in similar vein.

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Nov 07 '21

Prompt GUI from CLI on Ubuntu

9 Upvotes

I have created a program that classifies documents. After the classification is completed, I need to display the label and ask the user whether the label is correct. The user needs to enter yes or no on a web form that needs to automatically open when a file is classified using the command line interface. Tried the incron tool, but no luck.


r/linux_programming • • Nov 06 '21

How can i write an application launcher?

9 Upvotes

Where do applications launchers get the icons and all the installed application? How could my launcher get all the information needed?


r/linux_programming • • Aug 18 '21

Existing Applications in X11 and GTK

9 Upvotes

I am developing a simple DE and as I was following tutorials for creating windows I began to wonder how I could display existing applications such as FireFox or GIMP using X11 and GTK.


r/linux_programming • • Jul 15 '21

How to listen for window manager events?

9 Upvotes

I'm trying to create a dock application, and using GTK 3 for it. But how do docks (gnome dock for example) know which window is on top, which window is closed, etc? Is there any API for it? My goal is to listen to all events (closing, opening, etc) from windows of all processes.


r/linux_programming • • Jun 27 '21

CodingVM Community - Come learn Linux with us!

9 Upvotes

Are you wanting to learn how to use linux or simply want to program but do not want to set up all of the tools to do so? Then you have found the right coding group! We are brand new and have a lot of features available for free for all users! Perfect for the beginner coder or even the experienced who just want to play around.

Feature List:

* Linux Command Bot - This brings 20 discord "shells" for any user to issue real commands to, the operating system responds back to the user.

* S2L - An interactive web shell which can only be interacted with using discord.

* Remote Desktop Access to the LinuxOS that powers our community

* A Web OS Build in NodeJS for easy access on the go.

* A privately hosted Git server running Gitea

* Online VS Code Access using our custom VSCode Generator

If you want to code, relax and have fun while doing so, join us today.

Discord Invite: https://discord.codingvm.codes

Our Wiki: https://wiki.codingvm.codes


r/linux_programming • • Feb 24 '21

Install a Linux command line on an Android phone and boot directly to it

9 Upvotes

Is it theoretically possible to install a Linux command line on an Android phone and boot directly to it? If so, how? If not, why specifically not?


r/linux_programming • • Oct 18 '20

stegbrute - The fastest Steganography decrypter tool

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Apr 27 '20

Gamepad input

9 Upvotes

Hi there, I'm a bit of a noob when it comes to systems programming. Although I am the author of the Haskell bindings for libevdev (currently incomplete and a little under-documented).

I've been developing a web-based game controller. I've reached the point where I can fire evdev events on a Linux host (using a not-yet published extension to the Haskell package), by pressing buttons on a web page.

But what I want now is to actually use this device in games. Is there a specific API for this? How do Linux games (or Steam itself) determine that a particular device should be treated as a gamepad?


r/linux_programming • • Dec 06 '19

Book or Guide for a beginner

9 Upvotes

Hi, can anyone recommend me a good book or an online guide to learn linux programming. I know C++ and completely understand the concept of OOPS. So, given what I know can someone recommend a good book for me? And how much time would it take me to get an internship in this field? Thank you.


r/linux_programming • • Oct 11 '19

Netdata, the open-source real-time performance and health monitoring, released v1.18!

9 Upvotes

Hi all,

Release v1.18.0 contains 5 new collectors, 19 bug fixes, 28 improvements, and 20 documentation updates.

At a glance

The database engine is now the default method of storing metrics in Netdata. You immediately get more efficient and configurable long-term metrics storage without any work on your part. By saving recent metrics in RAM and "spilling" historical metrics to disk for long-term storage, the database engine is laying the foundation for many more improvements to distributed metrics.

We even have a tutorial on switching to the database engine and getting the most from it. Or, just read up on how performant the database engine really is.

Both our python.d and go.d plugins now have more intelligent auto-detection by periodically dump a list of active modules to disk. When Netdata starts, such as after a reboot, the plugins use this list of known services to re-establish metrics collection much more reliably. No more worrying if the service or application you need to monitor starts up minutes after Netdata.

Two of our new collectors will help those with Hadoop big data infrastructures. The HDFS and Zookeeper collection modules come with essential alarms requested by our community and Netdata's auto-detection capabilities to keep the required configuration to an absolute minimum. Read up on the process via our HDFS and Zookeeper tutorial.

Speaking of new collectors—we also added the ability to collect metrics from SLAB cache, Gearman, and vCenter Server Appliances.

Before v1.18, if you wanted to create alarms for each dimension in a single chart, you need to write separate entities for each dimension—not very efficient or user-friendly. New dimension templates fix that hassle. Now, a single entity can automatically generate alarms for any number of dimensions in a chart, even those you weren't aware of! Our tutorial on dimension templates has all the details.

v1.18 brings support for installing Netdata on offline or air-gapped systems. To help users comply with strict security policies, our installation scripts can now install Netdata using previously-downloaded tarball and checksums instead of downloading them at runtime. We have guides for installing offline via kickstart.sh or kickstart-static64.sh in our installation documentation . We're excited to bring real-time monitoring to once-inaccessible systems!

Improvements

  • Database Engine

    • Make dbengine the default memory mode

    • Increase dbengine default cache size

    • Reduce overhead during write IO

    • Detect deadlock in dbengine page cache

    • Remove hard cap from page cache size to eliminate deadlocks

  • New Collectors

  • Collector Improvements

    • rabbitmq: Add vhosts message metrics from /api/vhosts

    • elasticsearch: collect metrics from _cat/indices

    • mysql: collect galera cluster metrics

    • Allow configuration of the python.d launch command from netdata.conf

    • x509check: smtp cert check support

    • dnsmasq_dhcp : respect conf-dir,conf-file,dhcp-host options

    • plugin: respect previously running jobs after plugin restart

    • httpcheck : add current state duration chart

    • springboot2: fix context

  • Health

    • Enable alarm templates for chart dimensions

    • Center the chart on the proper chart and time whenever an alarm link is clicked

  • Installation/Packages

    • netdata/installer: Add support for offline installations using kickstart.sh or kickstart-static64.sh

    • Allow netdata service installation, when docker runs systemd

    • Make spec file more consistent with version dependencies

    • Fix broken links on web files, for DEB

    • Introduce separate CUPS package for DEB #6724 and RPM. Do not build CUPS plugin subpackage on CentOS 6 and CentOS 7

    • Various Improvements in the package release CI/CD flow

    • Remove RHEL7 - i386 binary distribution, until bug #6849 is resolved

    • Bring on board two scripts that build libuv and judy from source


Check the release log at github.

If you are new to netdata, check a few live demos at its home page and the project home at github.

Netdata is FOSS (Free Open Source Software), released under GPLv3+.

Enjoy real-time performance and health monitoring!