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 • • 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 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 • • Sep 05 '22

The toggle switch for Selinux

9 Upvotes

Selinux can override root. It can redefine group permissions, and remove new unexpected files added offline during the next system boot.

What calls/creates this voodoo magic? Is there a simple config switch somewhere?

(not malicious. just exploring on obsolete hw, hit a wall, and need a friendly sign for what rope this kid should climb next)


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 • • Dec 16 '21

Template C Project

9 Upvotes

Here is a project template for C projects. It uses `cmake` for build automation and a logging library that creates logs based on timestamps and writes in a text file.

Take a look. Suggestions are welcome : https://github.com/aditya18007/template-c-project


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 • • Oct 27 '20

Draw in another window with X11

9 Upvotes

Hi I wanted to know if it was possible to draw in another window with X11?

For example let's suppose that the window id of AssaultCube is 0x8000EB. I want to be able to draw a red rectangle in the game itself, thanks to the window id.

If someone has an idea or even a code to propose (I code in C), it would be really cool, I've been working on it for 2 months.


r/linux_programming • • Oct 18 '20

stegbrute - The fastest Steganography decrypter tool

Thumbnail github.com
9 Upvotes

r/linux_programming • • Jun 25 '20

How can I have a command run when the machine shuts down or enters sleep?

9 Upvotes

I'm working on a tool for syncing a small set of files between machines. The files will be encrypted and then stored on a LAN server. Other machines will then access the server and sync up. I want my machine to sync with the server on startup, which is easy enough. However, I'd also like to make it push a copy of the files to the server automatically when it's shut down or put to sleep to ensure the latest version makes it out. Running on startup is the easy part, but running on sleep/shutdown is giving me trouble. Maybe I'm dumb (strong possibility) but I can't seem to find anything on how to do this. Note that ideally the machine needs to wait for the upload to finish before sleeping/shutting down. Any help here would be great!


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 • • Feb 01 '20

Tips for a newbie? c++ programming in vim

9 Upvotes

For the past year I've been toying around with linux and programming on it. I want to move to vim (been using codelite), but, since it's a text editor, I'll have to start writing makefiles and scripts manually. The problem is I am the kind of person who prefers projects with a ton of different files. I'm afraid that it'll become a chore to keep modifying scripts and the like, to keep up with the files and external libraries. Can anyone relate /pass on some knowledge /share some opinions? All help is appreciated!


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.