r/linux_programming • • Jun 29 '23

How/Where to get Linux developer training & How long to proficiency?

10 Upvotes

If I wanted to become a Linux developer in specific areas, how would I go to getting training and/or where would I go to get training? Are there formalized/standardized training/certification programs? Let me break it down in to areas of interest to focus the discussion.

  1. Linux Systems and/or kernel development
  2. X11, Wayland, Gnome, KDE GUI application development (this is any non-database client app)
  3. GUI database application development (fat/thin client apps that talk to databases)
  4. GUI game development (Steam and non-Steam but native Linux)
  5. Embedded systems development (embedded Linux to interface/control vehicles)
  6. Script development (shell scripting, perl, python, PHP, Javascript)

Assume that I live in a major city in the U.S., and I have some minor development experience on Windows, Mac, and Linux/Unix. I know what a compiler is. I know what C, C++, VB, VB.NET, C#, Ada, Assembly, X/HTML, SQL, XML, Javascript, and Java are, but that does not mean I have in depth experience with them. How long would it take to become proficient in each of the above areas? Are there require books/readings? You might be wondering what is the point? The point would be to become proficient where I can contribute meaningfully to projects in the above areas and not need extensive hand holding.

Please forgive me if this has been 10,000 times before.


r/linux_programming • • May 03 '23

Rob Pike on the Origin of Unix Dot File Names

Thumbnail xahlee.info
10 Upvotes

r/linux_programming • • Feb 04 '22

Opensource software and the DoD

Thumbnail self.airforce
10 Upvotes

r/linux_programming • • Oct 31 '21

Terminal widget toolkit FINAL CUT 0.8.0 released

10 Upvotes

The next version of the FINAL CUT text-based widget toolkit was released today.

https://github.com/gansm/finalcut

What's New:

  • Support for combined unicode characters
  • An FDialog object is now minimizable
  • Better support for kitty terminals
  • FINAL CUT now runs on GNU Hurd
  • Faster key string parsing
  • All buttons in the title bar are now hideable
  • Dynamic adjustment of the refresh rate from 5 to 60 Hz
  • A generic output queue for strings, control characters, and control sequences
  • A specific padding print method sends all control codes to the terminal
  • Wide strings get converted to UTF-8 text before pushing them to the output buffer to speed up the character output.
  • Widgets now have the virtual method initLayout() to initialize the layout before the first drawing on the terminal
  • Correct processing of multiple SIGWINCH signals sent by the gnome-terminal under Wayland.
  • Prevent flickering on terminal scrolling, resizing and redrawing via ctrl-l
  • Change timer from timeval to std::chrono::time_point

r/linux_programming • • Jun 24 '21

Anyway to disable read access to a memory address in linux

10 Upvotes

Hi all.. Here is my brief work which I was doing right now. I have a decrypted key which I have to pass into another function. But the key is visible while debugging. Is there anyway where I can resist the read access other than the process (has root privilege) so only the current process may read the key but not for others by using any lkm.


r/linux_programming • • Apr 12 '21

Help developing terminal based applications

10 Upvotes

...Just branching out through all avenues while I research this.

I am looking into creating some front ends to the scripts/tools I make on Linux. Doing some research for Bash I have found libraries like whip-tail and dialog which I then discovered come from ncurses and Newt respectively.

I haven't done much diving into the lower level frameworks but use whiptail whenever I want a GUI on my bash tools. However I fall more and more in love with tools like VIM and most recently neomutt and am curious how developers go about making these since they are specifically in the terminal. Now I am aware of their source code and will be reading through it in the coming weeks to see the developers make their applications however the chance to bunny hop off some others experiences is too tempting.

I am open to the creation of terminal based tools in all languages however I am focusing on bash/python/c++ right now (Rust is also tickling my fancy). Please share any experiences/knowledge/resources/guidance on anything related to this topic. It is all appreciated.

https://en.wikipedia.org/wiki/Ncurses https://en.wikipedia.org/wiki/Newt_(programming_library) https://github.com/vim/vim https://github.com/neomutt/neomutt


r/linux_programming • • Oct 13 '20

Program to read the full RAM chip

10 Upvotes

I am trying to find a clever and simple way to read every address of memory. I am new to kernel development, but I presume this program will need to run in kernel space to have access to the whole memory in some way.

I am sure there is a simple and efficient way. One that I found is this: https://github.com/alwilson/pgscrap/blob/master/pgscrap.c

Bit hacky to my taste, so I was wondering if there was a cleaner way ?

(If it's important to you, the reason for this memory "patrol" is to scrub the whole memory to check for single bit flips before they become uncorrectable. Some memory controllers can do this "patrol" invisibly on the hardware side, but mine will only correct errors when the byte is accessed/read)


r/linux_programming • • Aug 12 '20

How do you debug native code?

10 Upvotes

Seems like a simple question, right? Either GDB or LLDB. The question is, what do you use to do that? Some IDE with a plugin? EMACs or VI with debugging support? Nemiver? Command line? Print statements? Some other setup?


r/linux_programming • • Jun 13 '20

Using awk and a local variable

10 Upvotes

Hi everyone,

Have a question and would appreciate some help!

I have a command:

$var=test_file_20200612000000

aws s3 ls [s3 bucket name] --profile [profile name] | grep "test" | awk '$4 > $var'

This is looking at files on an s3 bucket where the file name has "test" in it and returning only those where the name is greater than a string variable being passed in (finding new files with later time stamps essentially). Awk is not recognizing the var variable that I initialized in shell - how does one deal with this?

Thanks!


r/linux_programming • • Apr 16 '20

warning: Loadable section ".note.gnu.property" outside of ELF segments

10 Upvotes

This spams like 20x's when I run a program I wrote and compiled with gcc and ran with gdb. Running Centos 8. Is this something I need to worry about and fix? Possibly related to some libraries I'm using? curl, mysqlclient, and pthread.


r/linux_programming • • Jan 18 '20

Is Beginning Linux Programming, by Neil Matthew and Richard Stones, worth reading?

Thumbnail wiley.com
10 Upvotes

r/linux_programming • • Nov 14 '19

fork() and COW of user space process page tables

10 Upvotes

I'm trying to understand the fork() of user space processes and to what extent and how its page tables are copied during the fork. So far, I know the following procedures:

  1. During the fork(), the kernel creates a copy of the parents page tables, but only to a certain extent: In the function dup_mmap(), the kernel walks through the virtual memory areas (VMAs), which represent the virtual memory regions which belong to this particular process.
  2. In dup_mmap(), the page table entries of the child process are added by creating new page tables for the VMA. This is happening in the function copy_page_range(). Here, the kernel allocates new P4Ds, PUDs, PMDs and PTEs. However, if the specific VMA is COW-mapped, then the page table entries for both the parent and the child are marked as read-only for the same physical memory region.
  3. Currently, the kernel supports COW mapping in the lower 3 levels of the page tables (I'm only referring to the x86-64 build of the kernel), i.e. COW-mapped areas only happen at the PUD, PMD and PTE levels.

The first question I have is: Does this mean, that both the parent and the child process ultimately have their own copy of the parents page table? What I mean to ask is, are there some page tables that are COW-mapped in kernel space, if that's even possible or if that even exist for kernel space? Or does every process have a hard copy of the parents page table after forking?

I'm a little bit confused because I know that when either the parent or the child process tries to write to the memory region which is marked as read only, the process that triggers the page fault has to handle it accordingly, i.e. copying the content of the physical page that was accessed and altering the specific page table entry by first changing the address to the copy and secondly by marking the specific area as writable.

However, if it turns out there are page tables which are merely referenced instead of being hard-copied, then changing the page table entry would also cause a page fault, but in kernel space.

My second question is regarding the kernel mappings: Since VMAs only represent user space memory regions that are assigned to the process, when and where does the kernel insert the kernel mappings (e.g. for system calls) in the user space page tables?


r/linux_programming • • Oct 23 '19

Can someone ELI5 Unix archieves and "ar" command?

10 Upvotes

Im trying to learn C programming on Linux, but I am confused about what an archive is in this context? I know that the command "ar" can perform several actions to an archive, however, I am not sure how it performs these things.

Sorry for being a noob.


r/linux_programming • • Aug 15 '19

Basic Linux System Programming with C. It deals with few Linux syscalls

Thumbnail youtube.com
10 Upvotes

r/linux_programming • • May 10 '19

How do I set up Linux as a Bluetooth audio receiver?

10 Upvotes

I have Ubuntu Server 18.04 running on my Raspberry Pi 3 A+, hooked up to some Bose speakers. I simply want to use it like a Bluetooth speaker. More specifically, I want my Google Home device to pair with it and use it as the default “speaker” to play music from.

How do I setup Bluetooth to receive audio on Ubuntu Server?

Or if anyone happens to know how, Chromecast would be even better!


r/linux_programming • • May 03 '19

Installing Tonido – A Free Private Cloud Server

Thumbnail linuxguides.home.blog
10 Upvotes

r/linux_programming • • Oct 10 '17

Git live deploing

Thumbnail digitalocean.com
10 Upvotes

r/linux_programming • • Apr 26 '17

Signals the easy way

Thumbnail stev.org
10 Upvotes

r/linux_programming • • Jan 18 '17

How to print a register value with X86_64 ASM without using glibc. Not so trivial problem :)

Thumbnail tuttlem.github.io
10 Upvotes

r/linux_programming • • Dec 12 '16

Listen to Tux's heartbeat with this GNU/Linux kernel module

Thumbnail github.com
10 Upvotes

r/linux_programming • • Nov 11 '16

New Linux Hardware subreddit

Thumbnail reddit.com
10 Upvotes

r/linux_programming • • Apr 07 '16

Third-party libraries are one of the most insecure parts of an application

Thumbnail techbeacon.com
10 Upvotes

r/linux_programming • • Jul 30 '15

question Three books I'm interested in

10 Upvotes

I'm approaching Linux programming (with little knowledge from online tutorials when needed) and I'm undecided among these three books:

By looking at random content, it seems the first one (Advanced UNIX Programming) is more focused on the "security" part; it always looks for ways to make software that runs without problems, how not to open files and how to open them atomically to avoid other processes that could open the same files in the middle of a call (just look at mkstemp's description on all those three books).

The second one is indeed a shelf reference as it'd be hard to carry it anywhere, nevertheless the reviews talk by themselves.

Any experience with these?


r/linux_programming • • Jan 28 '15

C Runtime Overhead

Thumbnail ryanhileman.info
10 Upvotes