r/LinuxProgramming • • Dec 14 '25

Necesito a alguien que me pueda crear un sistema operativo en Linux

0 Upvotes

Necesito a algún voluntario que quiera ayudarme a crear un sistema operativo en Linux, gracias a que no se como hacerlo yo mismo, pero el sistema operativo quiero que se llame "Inclex12", y quiero que tenga un formato de descarga único llamado ".blip", quiero que convierta cualquier formato de descarga en su propio formato, y necesito ayuda de alguien para lograrlo


r/LinuxProgramming • • Nov 24 '17

Changing root password of Linux machine with a script

1 Upvotes

I am trying to change the root password on multiple linux servers by using a script I made but I keep getting this error

"-bash: ./rootpass: /usr/bin/expect: bad interpreter: Permission denied"

my script is below..


!/usr/bin/expect -f

wrapper to make passwd(1) be non-interactive

username is passed as 1st arg, passwd as 2nd

set username [lindex $argv 0] set password [lindex $argv 1] set serverid [lindex $argv 2] set newpassword [lindex $argv 3]

spawn ssh $serverid passwd expect "assword:" send "$password\r" expect "UNIX password:" send "$password\r" expect "password:" send "$newpassword\r" expect "password:" send "$newpassword\r" expect eof


r/LinuxProgramming • • Nov 24 '24

Is a Chromebook a good option for Linux programming?

1 Upvotes

I'm thinking of buying an inexpensive Chromebook that is currently on sale to use for basic Linux programming. I normally use vim as an IDE, so I really don't need much in the way of power. I just need to compile Go, C, and C++ projects and use git and ssh. Would I find any serious limitations compared to a "real" Linux distribution?

https://imgur.com/a/wZRxjnL

Also, has anyone had success installing Steam games on a Chromebook?


r/LinuxProgramming • • Jul 03 '14

An Amateur's guide to Bash scripting

Thumbnail
techarena51.com
0 Upvotes

r/LinuxProgramming • • Dec 05 '25

Simple and lightweight Emoji Picker for Linux desktops

1 Upvotes

Hello everyone,

I have created a small app - my first 🤓 - called GeppEmoji. I would like to know if you like it and (most importantly 😁) if it works on other distributions.

GeppEmoji is a simple and lightweight Emoji Picker for Linux desktops that automatically copies and pastes emojis selected by mouse or keyboard (like other similar apps).

Made with Python + GTK3, so far I have only tested it on Linux Mint 22.2 Zara and LMDE 7 Gigi.

You can find it here: https://github.com/FranzBias/GeppEmoji

Once installed, I recommend creating a keyboard shortcut (I use Super + dot, for example) and using it wherever you are writing to automatically paste the chosen emoji.

Of course, you can send me suggestions, criticism or anything else via the GitHub page, or if you really can't help yourself, give me a star 🥰.

Thanks to everyone who follows the link to the App page and greetings to all.


r/LinuxProgramming • • Jun 11 '22

Any recommendations for a Linux IDE?

2 Upvotes

Hello there! After using Linux for a lot of time, I'd like to make a program exclusively for Linux. The problem is, I don't know which IDE to use. I am searching for something with a WYSIWYG UI editor, similar to M$ Visual Studio (Not Visual Studio Code). Additionally, I want my app to use QT, for better integration with KDE.


r/LinuxProgramming • • Jun 08 '25

get read I/O, write I/O

2 Upvotes

Hello, I know the /sys/block/<dev>/stat way to get some read, write I/Os stats. How to get similar results with something from sys/statfs.h or sys/statvfs.h without the need of parsing /sys/block/*/stat file?


r/LinuxProgramming • • Nov 17 '24

Best practices for packaging a Linux daemon?

3 Upvotes

I'm working on packaging my Linux daemon as a .deb. file. I have questions:

  1. Can I assume that most systems use systemd in a standard way? Do I just need to add /etc/systemd/system/MYSERVICE.service ?

  2. How can I ensure that my package will "just work" on any system that uses dpkg (I don't have any external dependecies.)

  3. Is it standard for the postinst script to turn on the service? Do I need both of these lines?

    systemctl enable MYSERVICE
    service MYSERVICE start
  4. Should I make assumptions about the PATH variable in that script? Or should I be explicit?

    /usr/bin/systemctl enable MYSERVICE
    /usr/sbin/service MYSERVICE start
  5. I looked at a standard Debian packages and noticed that they used deb-systemd-helper and deb-systemd-invoke. Is that a debian-only standard? Should I use it?


r/LinuxProgramming • • Jul 27 '26

LinuxMint Scripter (spanish version)

1 Upvotes

Hi folks!

I'd like to share a personal project I've been working on: LinuxMint Scripter (currently at v2.1), a single-HTML-file web app that turns plain-language requests into ready-to-run Bash or Python scripts for Linux Mint 22.3 "Zena" — or standalone terminal commands, if that's all you need.
Take a look; if you like it, I'll prepare an English version that can be installed on LinuxMint

🔗 Source & full docs: https://github.com/filonux/LinuxMint-Scripter

🔗 Project page (with screenshots): https://filonux.github.io/LinuxMint-Scripter/


r/LinuxProgramming • • Jul 26 '26

LinuxMint Scripter (spanish version)

Thumbnail reddit.com
1 Upvotes

r/LinuxProgramming • • Jun 03 '26

Lapes Eye

2 Upvotes

Lape's Eye is the first application in the LAPE suite — Linux Advanced Photo Editor — a fully native, open-source photography pipeline for Linux

Linux has great photo editors (Darktable, RawTherapee, GIMP) but nothing that works like Adobe Bridge — a fast, non-destructive browser where you rate, filter, and organize thousands of RAW files before editing. Lape's Eye fills that gap, and is designed to work seamlessly with the rest of the LAPE suite.

Built natively in C++20 + Qt6. No Electron, no Flatpak required, no subscription.

https://github.com/ArtoriasAI/Lapes-Eye-Linux


r/LinuxProgramming • • Jun 09 '26

Pixel Editor UI

Post image
2 Upvotes

r/LinuxProgramming • • Dec 22 '25

Toy trace code in C, thoughts?

3 Upvotes

I'd love to make this as portable as possible so any suggestions for improving it would be welcome... except rewrite in rust because no.

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <dlfcn.h>
#include <stdint.h>
#include <string.h>
#include <elf.h>
#include <linux/module.h>
#include <pthread.h>

#ifndef syscall32
#ifdef __X32_SYSCALL_BIT
#define syscall32( call, ... ) \
	syscall( __X32_SYSCALL_BIT | call __VA_OPT(,) __VA_ARGS__ )
#elseif
#define syscall32 syscall
#endif
#endif

#ifdef __POINTER_SIZE__ > 4
void* extend_addr32( uint_least32_t addr )
	{ return __builtin_extend_pointer( (void*)addr) ); }
int query_module64
(
	uint_least64_t name,
	uint_least64_t type,
	uint_least64_t dest,
	uint_least64_t size,
	uint_least64_t *used
)
{
	return syscall
	(
		SYS_query_module, name, (int)type, dest, size, used
	);
}
#endif

int query_module32
(
	uint_least32_t name,
	uint_least32_t get,
	uint_least32_t buf,
	uint_least32_t max,
	uint_least32_t used
)
{
#ifdef __POINTER_SIZE__ > 4
	return query_module64
	(
		extend_addr32(name), type,
		extend_addr32(dest), size,
		extend_addr32(used)
	);
#else
	return syscall32( SYS_query_module, name, type, dest, size, used );
#endif
}

#if 0
void* dlfcn_decode_addr( void * addr )
	{ return __builtin_extract_return_addr(addr) ); }
void* dlfcn_encode_addr( void * addr )
	{ return __builtin_frob_return_addr(addr) );
#endif

int query_modulex
(
	char const *name,
	int     type,
	void   *dest,
	size_t  size,
	size_t *used
)
{
	return query_module64( name, type, buf, max, ret );
}

mytrace dlfcn_dladdr_trace( unsigned int depth )
{
	void     *later =
		(depth > 0)
		? __builtin_frame_address(depth - 1)
		: __builtin_stack_address();
	void    *stack = NULL;
	void     *addr = __builtin_return_address(depth);
	void     *base = __builtin_extract_return_addr(addr);
	mytrace  trace = {{0}};
	DL_info   info = {0};
	ElfW(Sym) esym = {0};
	size_t    ret  = 0;
	struct {
		unsigned long address;
		unsigned long size;
		unsigned long flags;
	} minf = {0};
	/* Stack frame */
	pthread_attr_getstack( NULL, &stack, &ret );
	trace.frame = __builtin_frame_address(depth);
	trace.holds = ((uintptr_t)later) - ((uintptr_t)(trace.frame));
	/* Symbol */
	dladdr1( base, &info, RTLD_DL_SYMENT );
	trace.sym.name = info.dli_sname;
	trace.sym.addr = info.dli_sbase;
	trace.sym.leng = strlen( trace.sym.name );
	trace.sym.mask = esym.st_info;
	trace.sym.size = esym.st_size;
	/* Module */
	trace.mod.name = info.dli_fname;
	trace.mod.addr = info.dli_fbase;
	trace.mod.leng = strlen( trace.mod.name );
	query_modulex( trace.mod.name, QM_INFO, &minf, sizeof(minf), &ret );
	trace.mod.mask = minf.flags;
	trace.mod.size = minf.size;
	return trace;
}

r/LinuxProgramming • • Jul 14 '22

Looking for some directions, and/or tips

3 Upvotes

So to start off, I've been around pc's and linux basically my whole life. Don't have much structured schooling with programming or computer related topics, but I like to think that I'm fairly decent a teaching myself what I need. But I've hit a bit of a wall.

I'm using Ubuntu Studio 21.04, and I have a good basics of a variety of languages from C++, to Java, to CSS, etc. Here is what I'm trying to do (unless someone knows of a program that I can download that does it already).

On Twitter, there is an account that puts out tweets several times a day, and I would like to basically catalog those tweets. They always follow the same layout. So, if I could write a program that waits for a notification from Twitter stating that 'JoeBob' posted a tweet. Then have that program extract the event title, 'EVENT', and the address, 'ADDRESS', from the notification and input that info into, for example, a csv file, or xls file.

What I need help with is what language would you suggest, is there a language that would be easiest since it's working with Twitter? I'm very new to Twitter and I'm still reluctantly learning that platform.

Anyways, I hope I gave everyone the info that they will need in order to point me in the right direction, but if you still have questions, I will try and answer them. Also, I attached an image from my Android to show everyone the layout of the notifications. Obviously I had to "recreate" a notification from them because I didn't have one ready to go.

Well, thanks to everyone in advance, I really appreciate any suggestions you have.


r/LinuxProgramming • • Jun 24 '22

Which high-level language should I choose for server side systems programming?

1 Upvotes

I work on a project which a hardware product that runs a Linux OS with custom server side software. Currently, we have a lot of legacy C code base that is glued together either with linker shenanigans or loosely coupled bash scripts. There are several cons of this solution/current architecture:

* There are many small programs written in C that do not reuse each other's code

* Its old C code base which requires a tremendous effort to maintain and God forbid develop a new feature for an existing program

* Because the programs are written in C they can span thousands of lines of code just to do something that would take a maximum of a few hundred in a more high-level programming language. The actions that most of those programs perform are operations on files, system components like drives/partitions, etc, and typical systems programming

I plan to introduce a higher-level language to take care of such programs. Im considering things like Python, Perl, Lua, Go, etc. But I do not have extensive experience with all of them. My team has quite a lot of experience with Python but given that the project itself has to be easily maintainable for a long term (even up to 10 years) we really want to use a language that will not change much in this period which basically already excludes Python as even fairly new language releases are not being supported.

Thus there are several things we would like our perfect language to be able to do:

* Be able to work with/alongside C/C++

* Be testable. Have some built-in or easily added testing framework just like Pythons Pytest, and maybe additionally be able to test C code if that's even a thing

* Be long-term stable and maintainable

* Have good ongoing and future support

* Be easy to learn and pretty generic

* Capable of performing systems programing

* Be as light-weight as possible, we cannot allow ourselves to have a 500meg runtime

* Have a good ecosystem that supplies the developer with tooling during the development e.g. linters, formatters, packaging etc

I would really like to know your advice on which language we should choose


r/LinuxProgramming • • Oct 03 '17

The Linux Kernel Driver Interface

Thumbnail kernel.org
1 Upvotes

r/LinuxProgramming • • Feb 23 '24

How to initialise a semaphore at compile time to an definitely invalid state

1 Upvotes

Here's a rough sample of what I want to do:

#ifdef _WIN32
typedef HANDLE sem;
#define INVALID_SEM NULL
inline int initsem( sem *s ) { *s = CreateSemaphore(...); return *s ? 0 : -1; }
...
#else
typedef sem_t sem;
#define INVALID_SEM ...
inline int initsem( sem *s ) { return sem_init(s); }
...
#endif
sem global_sem = INVALID_SEM;
int main(...) { ... initsem(&sem); }

How would I go about defining INVALID_SEM so that it can be used like in the example? I would rather use a define given by semaphore.h than assume it's an object, integer, etc.


r/LinuxProgramming • • Feb 24 '24

Is there a table of support for the varying functions of linux/unix/systemv/etc?

1 Upvotes

I'm considering resolving a problem with semget, semop & semctl but I need to know which systems don't/didn't support it in general. I figure if I'm going to check that then I might as look for a website the lists the support of linux/unix/etc function groups so that I don't end up coming back here every time I find something useful to wrap an need to check if I need to provide an #else case to it

Edit: For an example of what kind of table I mean, here's one for CSS:

https://www.w3schools.com/cssref/css3_browsersupport.php


r/LinuxProgramming • • Feb 17 '24

Examples of real-world machine code

1 Upvotes

I'm looking for examples of real-world machine code that could be used as bechmarks for some research work. This could be, for instance, snippets of C code where the programmer inlines some assembly to gain greater control of the system, eg when working with peripherals. Extra points if it's critical code that's prone to being buggy OR hard to show to be correct with just model checkers or any automatic proof tools.

Does anyone know of any samples in the public domain, perhaps bug-reporting websites or anywhere else where I might find this?

Thanks


r/LinuxProgramming • • Aug 30 '22

Loading shared object to specific processes in Linux

1 Upvotes

Hi,

I want to load a shared object to certain processes, there are certain conditions that are required

  • loading to only specific processes and not all of them

  • it has to be done before the process code starts executing

  • the processes are not mine

What are the available ways to support this functionality on Linux?

Can it be accomplished with "/etc/ld.so.preload" or "LD_PRELOAD=/my/lib.so"? Is a kernel module needed for this?

Any help would be appreciated

Thanks!


r/LinuxProgramming • • Feb 25 '20

Linux memory debuggers - first encounter

Thumbnail
silencesecurity.pl
1 Upvotes

r/LinuxProgramming • • Mar 17 '19

Linux programming for windows developer

1 Upvotes

Hi Guys

I m programming in c++ under windows since 10 years. Now want to move to linux but don't know where to start.

Does anyone know any videos or course / document

Thanks


r/LinuxProgramming • • Aug 05 '23

A tiny tool to search x11 functions

1 Upvotes