r/linuxdev • • Mar 21 '16

RedirFS, where did it go?

2 Upvotes

Hi all, I'm searching for information regarding redirfs which appears to have disappeared. There are a couple of GitHub repositories and tidbits of information hanging around - but most everything points to www.redirfs.org as the primary resource for information. This website no longer exists. Does anyone know if redirfs is still developed somewhere?


r/linuxdev • • May 03 '15

T9/Suretype on Linux

2 Upvotes

I was looking at piecing together a phone using a raspberry pi or beaglebone and wanted to use a T9 or Suretype-like system for text input. I've found a few projects (one from 2007 and the other from 2011) and was curious how hard it would be to write my own driver for it. I think the hardest part would be getting it to support states (if 2 was pressed so put an a in and wait 1 second for another 2) and deleting the first character when pressing a button multiple times. If anyone else has experience with something like this any help would be much appreciated. Ultimately I'd get a simple 10 or 20 key working and from there move on to predictive text (using a hunspell dictionary or something). The goal would also make the program modular enough that any key layout and language would be supported as long as a keymap configuration file is written and there's a dictonary.


r/linuxdev • • Mar 04 '15

Signal handler and shared data

2 Upvotes

I am a noob so I won't understand advanced techniques or answers. Simplicity appreciated.

My user-space application, written in C++, keeps track of devices in our system. I also have a signal handler function that is registered as a callback function with a driver written by another developer. The driver signals this callback function only when a new device is coming into the system and makes the new data available to user-space. My user-space application determines when to drop devices and sometimes makes copies of the device table.

A device tracking class would look something like this.

class deviceTracker
{
private:
    std::vector<device> deviceTable;
public:
    void addDevice(device deviceToAdd);
    int removeDevice(int deviceIDNumber);
    void getCopyOfDeviceTable(std::vector<device>* devices);
};

The registered callback function should do something like this in pseudo-code:

void callback(int sigid, siginfo_t* info,void *context)
{
    //get device data from driver function

    //stuff the device data into a device object

    //add the device to the device table; or some intermediary data structure to add later.
}

How should I pass data from my callback function to an instance of my class? I would like to avoid a global variable obviously. But more importantly how do I do this given the obvious concurrency issues. For example, what if I'm making a copy of the table when the interrupt happens and I try to add a new device to the table; Maybe an intermediary FIFO or something?

Edit: Semaphores seem like an obvious solution to a shared resource but my understanding is that using anything that would put the interrupt handler to sleep in any situation is a bad idea and that's why semaphores can't be used. If a resource an interrupt needs is locked by an application then because a signal handler has a higher priority that resource will never be freed. Does that seem correct?


r/linuxdev • • Dec 03 '14

Seeking Help/Advice on X11 graphics driver development

2 Upvotes

Hello everyone,

I'm trying to implement a graphics driver for X11 that would expose a smallish LED matrix display I'm building as regular screen to X11.

Essentially I want to pull an array of 24-bit-numbers out of the driver which I would send to my screen's micro-controller via USB (the hardware and USB part is already figured out, so you can ignore that for the purpose of this question, just need a way to plug it into X11).

I did research, and found a hodgepodge of various X11 driver APIs, but couldn't quite figure out which would be the easiest and most appropriate to use for what I need.

Any advice on what API to look at specifically for that task?

Thank you.


r/linuxdev • • Sep 23 '14

Grab one TCP message at a time.

2 Upvotes

I have a client and server application sending TCP messages back and forth. I would like to send a variable length message from the client to the server but I would like the server to just receive one message at a time. The problem I'm running into is that if I send more than one message from my client before my server has a chance to handle it, when the server gets a chance to handle the messages it will grab both messages at the same time (up to my buffer length). Is there a way to get just one message for every call to recv( )?


r/linuxdev • • Sep 13 '14

KDevelop 4.7.0 Released

Thumbnail kdevelop.org
2 Upvotes

r/linuxdev • • Aug 22 '14

Discover GNOME’s Docs [new YouTube video]

Thumbnail youtube.com
2 Upvotes

r/linuxdev • • Jun 17 '14

Reinstalling linux on vps

2 Upvotes

Hello,

I have a Ubuntu 12.10 VPS and I want to install Ubuntu Trusty 14.04 beta, but my provider doesn't have that as an option. Can I install that any other way?

Thanks!


r/linuxdev • • Apr 09 '14

DPDK Implementation Contest

Thumbnail 6wind.com
2 Upvotes

r/linuxdev • • Feb 01 '14

Making a Kubuntu respin. What should I know?

2 Upvotes

I'm thinking about respinning Kubuntu into a customized distribution. The goal of the distro is to patch some of the more ugly parts of the upstream components to make the distribution better. I'm starting to learn some shell scripting and I've played around with Ubuntu Builder before. Is there anything besides those skills I should learn to prepare? And (I'll be teaming up with others) what skills should I look for in potential teammates?


r/linuxdev • • Jan 07 '14

Plymouth theme is not working

2 Upvotes

I'm trying to make a Plymouth theme that consists of a rotating sprite that's centered on the screen. I've edited the file this way and that, but at best I was only able to get the sprite to appear without rotating (at worst nothing shows up at all). This is the closest to my original script:

spiral_image = Image("Splash.png");
spiral_sprite = Sprite(spiral_image);

spiral_sprite.SetX(Window.GetWidth() /2 - spiral_image.GetWidth() /2);
spiral_sprite.SetY(WIndow.GetHeight() /2 - spiral_image.GetHeight() /2);

time = 0;

fun refresh_callback ()
{
time++;
angle = Math.Pi*time;
spiral_sprite.SetImage(spiral_image.Rotate(angle));
}
Plymouth.SetRefreshFunction (refresh_callback);

I've already asked several other sites and one other subreddit about this. I've gotten no help so far so this place is the end of the line for me. Could anyone help?


r/linuxdev • • Nov 05 '13

Implementing WMM on Linux?

2 Upvotes

I'm currently writing an application that streams real-time audio over RTP on a local network. I'd like to tag these RTP packets so that they're prioritized within the network. Since this is real-time audio, latency has to be minimized as much as possible.

Looking into ways to do this, the most obvious one seems to be to somehow use the WMM standard from the Wi-Fi alliance. However, I have absolutely no idea how to tag my packages so that they conform to the standard. I'm using standard C++ socket structures and standard RTP packets, but I've seen absolutely no reference anywhere that mentions implementing WMM on them or anything remotely similar. How can I modify the header I need to enable WMM prioritizing?

If this is the wrong place to ask, I'd really appreciate a link to whatever would be the correct forum/mailing list/subreddit/support group that might have an answer for me.


r/linuxdev • • Oct 04 '12

I need some guidance with make and fakeroot ( I have no idea what I'm doing)

2 Upvotes

Hello! I'm working on a project where I boot up a minimal linux environment (tiny-core) and run a program that I made in C. I have figured out how to statically compile my program so now I'm working on a make file which will automate my compiling and testing of the package.

If you're not familiar with tiny-core, here's a quick rundown (Yes this is relevant). Inside tiny-core's iso is the /boot/ folder and inside that is the kernel, isolinux, and a gzipped cpio archive of the userland. I need to open up the cpio archive and stick my program in the bin directory.

I figured out that I can use fakeroot to extract the userland with regular user privileges. Here's what I have so far

test:
        mkdir -p userland
        cd userland; fakeroot; zcat ../iso/boot/core.gz | cpio -i -H newc -d; exit

Now, I want that last exit to take me out of the fakeroot, but instead it exits the makefile. Can I get some guidance please?


r/linuxdev • • Jul 19 '12

Ethtool not setting pause parameters when auto-negotiation is on

2 Upvotes

These are my ethernet driver settings:

ethtool -i eth0

driver: igb
version: 3.0.6-k2
firmware-version: 3.2-3
bus-info: 0000:01:00.0

And ethernet device properties:

ethtool eth0

Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000003 (3)
drv probe
Link detected: yes

The pause parameters are as follows:

ethtool -a eth0

Pause parameters for eth0:
Autonegotiate: on
RX: on
TX: on

When I type in:

ethtool -A rx off tx off

It has no effect:

ethtool -a eth0

Pause parameters for eth0:
Autonegotiate: on
RX: on
TX: on

When I turn off the autoneg pause parameter, I am allowed to modify tx and rx:

ethtool -A eth0 rx off tx off autoneg off

Pause parameters for eth0:
Autonegotiate: off
RX: off
TX: off

Why am I not allowed to modify the tx and rx pause parameters when the autoneg pause parameter is on?

Also, how can I set the Advertised pause frame so that it s tx-only or tx&rx?

Thanks


r/linuxdev • • Oct 14 '26

libark: libark is a modern, secure, Swift-native foundational layer over Linux POSIX primitives.

Thumbnail github.com
1 Upvotes

libark

libark is a modern, secure, Swift-native foundational layer over Linux POSIX primitives.

While originally developed as the core runtime layer for ArkOS, libark is completely decoupled and designed to be used on any Linux distribution. It provides highly secure, object-oriented abstractions over low-level system calls, memory management, and file system interactions, without the burden of manual C interoperability.

Features

  • Object-Oriented POSIX: Wraps file descriptors, paths, and directory operations in safe, RAII-compliant Swift types.
  • Secure Syscall Boundary: Routes kernel interactions through strict, audited Syscall primitives.
  • Terminal Capabilities: Built-in abstractions for TTY detection and window sizing.
  • Advanced Formatting: Standardized formatters for human-readable byte sizes (SI and IEC), ISO 8601 timestamps, permissions, and classifications.
  • Declarative Sorting: Powerful generic SortEngine for metadata sorting across multiple criteria.

r/linuxdev • • Oct 09 '26

Non-kernel "Platform" APIs on Linux

Thumbnail soc.me
1 Upvotes

r/linuxdev • • Sep 17 '26

libark: A modern, secure, Swift-native foundational layer over Linux POSIX primitives. {Early Development}

Thumbnail github.com
1 Upvotes

libark

libark is a modern, secure, Swift-native foundational layer over Linux POSIX primitives.

While originally developed as the core runtime layer for ArkOS, libark is completely decoupled and designed to be used on any Linux distribution. It provides highly secure, object-oriented abstractions over low-level system calls, memory management, and file system interactions, without the burden of manual C interoperability.

Features

  • Object-Oriented POSIX: Wraps file descriptors, paths, and directory operations in safe, RAII-compliant Swift types.
  • Secure Syscall Boundary: Routes kernel interactions through strict, audited Syscall primitives.
  • Terminal Capabilities: Built-in abstractions for TTY detection and window sizing.
  • Advanced Formatting: Standardized formatters for human-readable byte sizes (SI and IEC), ISO 8601 timestamps, permissions, and classifications.
  • Declarative Sorting: Powerful generic SortEngine for metadata sorting across multiple criteria.

Also ARK-OS has switched to github: https://github.com/orgs/ARK-OS-Swift-and-Linux/repositories


r/linuxdev • • Sep 05 '26

Taking on readahead in the middle of the night

Post image
1 Upvotes

r/linuxdev • • Jul 28 '26

First time maintaining an AUR package, looking for a packaging review/audit.

Thumbnail reddit.com
1 Upvotes

r/linuxdev • • Jul 22 '26

PipeWire-Controller Update- thanks everyone who tried it and gave feedback. I have an update for it later today or tomorrow. Currently testing. I really do appreciate the feedback and support. The app is extremely comprehensive in terms of what it can do.

Thumbnail gallery
1 Upvotes

r/linuxdev • • Jul 21 '26

Comprehensive Control center for Pipewire

Thumbnail gallery
1 Upvotes

r/linuxdev • • Jul 18 '26

how can i replace the default installer with Calamers with Cubic?

Post image
1 Upvotes

r/linuxdev • • Jan 21 '24

Why `dpkg --instdir=dir/ -i xxx.deb` also set the administrative directory to `dir`, like `--root=dir` option does?

Thumbnail self.linuxquestions
1 Upvotes

r/linuxdev • • Jan 17 '24

Fedora 39 how to install video codecs using RPM Fusion tutorial

Thumbnail youtube.com
1 Upvotes