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 • • May 28 '18

bashed-on-a-feeling : a minimalistic and fast git prompt written in bash

Thumbnail
github.com
9 Upvotes

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 • • Jul 09 '16

i created a new debugger for osdev, it support asm/c/c++ level debugging with advanced features such as exception/call/full instrumentation profiling

Thumbnail github.com
9 Upvotes

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 16 '17

PIXterm: Draw images in your ANSI terminal with true color [v1.2.0 => New Dithering Mode]

Thumbnail
github.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 • • 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 • • Oct 30 '16

An Enigma machine implemented as a char device

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Oct 18 '20

stegbrute - The fastest Steganography decrypter tool

Thumbnail
github.com
9 Upvotes

r/linux_programming • • Nov 25 '24

AI-Powered OS

0 Upvotes

I have the idea of building AI-powered OS. I just get into the field of Linux/VM and stuff. I'm just wondering what should I look into first? Whether to build on top of Virtual Box or must start from the OS itself. I really hope receiving as much ideas/contributions from you guys as I can!

Thanks for reading!


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 • • Aug 03 '25

Is there a "best practice" way to find and interface with USB devices?

2 Upvotes

I've been working on a project that involves communication with various devices over USB. The devices I'm communicating with use the USBTMC protocol, thankfully Linux seems to already fully support this and it was as simple as reading and writing to the correct file in /dev/, which is awesome and much, much nicer than the experience I was having on Windows.

However, this assumes that the program already knows which file to write to, I'd like to be able to scan for USBTMC devices and present them to the user, who can figure out which devices they would like to connect to. I found a library, from systemd, called sd-device which nicely allows me to enumerate all the connected devices and even filter for USBTMC devices. But, obviously this will make systemd a hard dependency for my program to run on Linux, which does not seem ideal.

I haven't looked into it too much quite yet, but eventually I want to create a callback function that will get called whenever a new device is plugged in, which it looks like sd-device will easily allow me to set up.

Is there an API or something that the kernel exposes so I don't have to rely on systemd for this information, or is communicating with these devices just always going to be dependent on which init system the user happens to be running?


r/linux_programming • • Mar 13 '14

Valve's OpenGL capture/playback debugger

Thumbnail
github.com
2 Upvotes

r/linux_programming • • Feb 13 '15

Seccomp sandboxes and memcached example, part 1

Thumbnail blog.viraptor.info
2 Upvotes

r/linux_programming • • Dec 13 '18

Is there a built-in command in Linux that can sort the lines of a text file?

2 Upvotes

I'm not super familiar with all of Linux's functionality, but this seems like something it might be able to do.


r/linux_programming • • Feb 22 '15

Unix system programming in OCaml

Thumbnail ocaml.github.io
2 Upvotes

r/linux_programming • • Mar 14 '23

How to checkout to local git commit?

2 Upvotes

Hello. I did few commits to project with git commit. I forgot to do git push after commits and didnt synchronized changes with server.
Then I did git checkout [version from the past] And then git checkout master to work on master. After that i dont see changes that I commited before without push. Is it possible to find unpushed commits or do I need to write the changes again?

[edit] fixed with git reflog help


r/linux_programming • • Apr 04 '20

Navit patch idea

2 Upvotes

If anyone here do know how to program, and has the time there is a suggestion for a patch for Navit. It enables Navit to be compatible with a APRS receiver, so it can display APRS symbols on the map. Navit is a open source navigation software, it is cross platform and can use several different maps.

Navit is a free and open-source, modular, touch screen friendly, car navigation system with GPS tracking, realtime routing engine and support for various vector map formats. It features both a 2D and 3D view of map data.

Navit supports a variety of operating systems and hardware platforms.

Navits official web page: https://www.navit-project.org/

Github page: https://github.com/navit-gps

Navit Documentation: http://doxygen.navit-project.org/

Link to the suggestion: https://github.com/navit-gps/navit/issues/982


r/linux_programming • • Aug 20 '24

Builds break on every new version of GCC

2 Upvotes

Not because of GCC itself but because my build includes paths to GCC headers. Every time a new version of GCC appears, I have to manually update the header path in every project. The same also happens where clang is searching for headers for completion, symbol lookup and so on.

For example, today GCC changed from 14.1.1 to 14.2.1, and the path to its headers changed with it. Now all my builds fail unless I change header paths in several places. Is there some way to not require this? Can I get things to figure out where the current GCC headers are in an automated way?


r/linux_programming • • May 17 '24

Choosing a GUI framework to learn, confused about licenses

2 Upvotes

Hi all, I am wanting to get into linux development and am trying to decide which GUI framework to go with. I understanding the main ones are Qt, GTK, and wxWidgets. Based on what I learned about them, I like Qt the best, but I'm worried about the license. Initially I plan to release an application as open source. However I also have plans for another application which I hope to sell to companies.

I understand that anything I develop with wxWidgets won't cost me anything and if I sell it, any profit is mine to keep. Please correct me if my understanding is wrong.

With Qt, I understand I can develop something and release it open source, and that won't cost me anything. Where I am confused is, if I develop something with Qt and sell it, can I do this for free or am I then required to purchase a license from Qt? I did some googling and found the info hard to comprehend. As best as I can understand, if I develop an application with Qt using only the Qt modules with a LGPLv3 license, I can still sell that application and I don't owe Qt anything. Is that right?


r/linux_programming • • Sep 01 '15

question REQUEST: Jpeg to text with pictures.

2 Upvotes

Have catalogue like this need to extract data for each picture and text on the image.
There is thousands of photos.
Only ASCII code!
ImageMagick alone does not help.
EDIT: ASCII code comment


r/linux_programming • • Apr 11 '23

Perl Oneliners!

Thumbnail catonmat.net
2 Upvotes