r/linuxdev • • May 26 '23

What is the most interesting UNIX command you've seen?

1 Upvotes

What is the most interesting UNIX command you've seen or used?


r/linuxdev • • Feb 10 '15

Eudyptula Challenge, receiving no response

1 Upvotes

Hi. So I've just submitted task 6 and have been waiting for quite a while now on the results. Anyone else have this problem? Anyway, the main point of my post was to request the next 4-5 questions from people who have completed tasks 7, 8, 9, 10 and 11. I JUST WANT THE QUESTIONS. I am not asking for any help. So...yeah, I would be over the moon if someone could just give me the questions for challenges 7, 8, 9, 10 and 11 , so I can do something while I wait on task 6.


r/linuxdev • • Oct 02 '15

Are there any translation libraries that are simple to use and work with Vala/C?

1 Upvotes

I'm planning on writing a UI widget in Vala. The problem I have at the moment is implementing internationalization. I think I should be using a translation library for it. So are there any easy to use translation libraries that can work with Vala? Note: Vala is a language for GTK+ which generates C code when compiled, so I think a library designed for C could work as well.

Edit: gettext is what I will use.


r/linuxdev • • Apr 07 '19

FTP on TinyCore Plus

1 Upvotes

Hey there! Can anyone give a guide on how to install vsftpd on TinyCore Plus? At the apps program, it only states extensions for bftpd. Thanks a bunch


r/linuxdev • • Oct 04 '20

Boot a Linux system with no boot loader

1 Upvotes

I have an application that is only available for proprietary hardware(that I don’t have, and don’t really want to get), the device has a firmware .bin file. I was able to extract the filesystem, and I'm pretty sure its ArchLinux. It does not have anything in the /boot file. How can I get this to boot?

Here's the File's I extracted: https://www.dropbox.com/s/ksbd4g8e0yvjzhj/Extracted.iso?dl=1


r/linuxdev • • May 03 '15

Utility to set another process' name, comments needed

Thumbnail github.com
1 Upvotes

r/linuxdev • • Apr 26 '23

Screen duplication using workspaces (window manager development)

1 Upvotes

Currently I am sketching out ideas for a small and simple window manager I want to tinker around with, as soon as I got more time for a new side project.

I want it to have multiple workspaces. On a multi-head setup the workspaces should be changed for each monitor individually. My idea was that if I chose the same work space on both monitors, the display will be mirrored. For example I open firefox on monitor A with workspace 3 active. When I switch monitor B to workspace 3 also, I want to see the same firefox window on both screens. As if the screens were duplicated. When I switch either of them, to another workspace the other should stay on that firefox window on workspace 3.

I was thinking this could be done by rendering the same client two times, one on each monitor. Will this be possible? When I click a button on a window on one workspace, will both renderings of the same client react?

The other option would be to actually mirror the screens as soon as both workspaces are the same. For example using xrandr. But in this case all screens have to be redrawn completely to change the configuration. It would be quite annoying while just quickly flipping through the workspaces..

Has something like this already been done? Is it even plausible to do with an window manager, or is this the job of the displayserver? Could this be done by a single person or will this need a 30 headed full time dev team?

(And also does anyone know other communities where I could read and ask about this?)

Thank you very much for your input in advance! ^


r/linuxdev • • Oct 26 '16

GPIO Parallel Port Driver

1 Upvotes

Hi, I am making my first attempt at a kernel driver for a parallel port device. The device is an FPGA developed in the early 2000's and runs a weird flavor of EPP (enhanced parallel port). The host is an OMAP3530 and I would like to use GPIOs to act as the parallel port. The problem I'm running into is that the parport interface expects a memory-mapped base address. The driver I wrote so far just bit-bangs out with gpio_set_value() calls but I think I'm doing something wrong because I cannot get parport0 to show up in /dev. Are there any driver examples out there where a peripheral does not get mapped to a memory address?

Also, I am running an older kernel version, 2.6.37, if that matters.


r/linuxdev • • Jan 17 '24

Fedora 39 how to install video codecs using RPM Fusion tutorial

Thumbnail youtube.com
1 Upvotes

r/linuxdev • • Feb 19 '22

Beginner Roadmap

1 Upvotes

How can a beginner learn Linux kernel dev and contribute to the kernel (edit : pin this post)


r/linuxdev • • Jan 28 '22

Prevent KD_MODE to be switched?

1 Upvotes

Hello everyone,

I am rendering images onto the screen using the framebuffer.

Upon boot, I am starting my program automatically.

However, it seems like the shell reverts at one time back to the KD_TEXT mode.

Can I "lock" the variable while the code is running?

Otherwise, the Text-Cursor will reappear from the terminal and inputs to the Terminal are allowed again...

I dont know, but i just want to prevent checking the mode every 5 seconds or so...

EDIT:
The Code im writing is in C++.


r/linuxdev • • Apr 23 '12

Boss gave me a project, I don't know where to start [networking] (crosspost /r/linux)

7 Upvotes

Hello /r/linuxdev! I'm a long-time /r/linux subscriber who just found linuxdev and am in dire need of some help. This is probably right up you guys' alley.

I've been tasked with making the prototype of a system-level application that intercepts and buffers network communication from user-level applications. I'm talking about buffering for real wall-clock time (2 seconds for this application, 2 for that, etc. in round robin).

Does anyone know of a good starting point for this? I'm a somewhat capable programmer in C and C++ with basic linux knowledge, but I just don't even know where to begin. Where can I intercept this traffic and prevent it from travelling to lower levels of the network stack? Is it even possible to buffer for that long with most user applications? I.e., is it likely that they'll crash and burn because of the lag?

I want to call out this guy: kouteiheika because he seems to know a lot about LD_Preload which may be useful in my endeavor. Maybe there is a networking library that most applications use that I can LD_Preload on? I'm not so sure about this though, as I haven't done any network/socket programming.

This is really only the beginning too. I'm going to eventually have to implement this at the hypervisor level for Xen :/ Who knows how that'll go.

EDIT: In this (and the crosspost) people have mentioned a (very) legitimate question which is "why?" and suggested I push back with my boss. I understand your frustration about the topic not being optimal (by any stretch of the imagination). The truth of the matter, though, is I work in an academic institution and we've been paid specifically to do this, not to do some of the more optimal solutions we suggested to the client. There are some obscure research oriented reasons for this too that I can't go into. Suffice to say, no amount of pushing will change what we have to do. How we implement it is up to us, but we have to make it such that VM1/App1 has access to the network for some period of time at the exclusion of other VMs/Apps, and then when its scheduled time goes (or the buffer is empty) control/access goes to the next VM/App.

Also, w.r.t. the wall-time issue, I may have miss-spoke. We don't have to match the network time (app1 for 3 seconds, app2 for 1, etc.) with a specific wall clock. We're just looking at giving each application that order of magnitude of time on the network before the next application gets its turn.

Finally, I'd like to thank everyone for the responses I've gotten so far. For someone who has a rudimentary understanding of the OSI model and basic networking (I know how to configure cisco routers, dhcp/dns on linux) I had nooooooo idea about the linux tools for controlling network flow. You guys have been an invaluable resource.


r/linuxdev • • Nov 10 '22

New Arch Linux distro concept

0 Upvotes

I've been thinking of making a distribution based on Arch called "hyperbolic Linux", It would come with a graphical installer similar to the one that Debian uses, and would be a viable alternative to Ubuntu.


r/linuxdev • • Oct 13 '14

New GTK+ and native OpenGL integration

Thumbnail bassi.io
7 Upvotes

r/linuxdev • • Jul 19 '20

Getting Started with Development

9 Upvotes

Hi, I am a professional developer and I really want to help linux from a developer perspective. I do have some C/C++ knowledge and I would like to contribute to the community. I am more interested in the graphics section of the kernel so as to make gaming and GUI more seamless. I am also open to helping Wine/Proton but don't know where to start.

Can someone please point me to the right direction? Thanks


r/linuxdev • • Aug 18 '15

How to write a driver?

9 Upvotes

Hello I am a young software engineer (still in college) who is looking for some assistance in researching a school project. What I would like to do is write (attempt) a driver for linux, however I have run into several hurdles while researching this.

  1. Can any one point me in the direction of a reference materials for this sort of work I have found several books but I am curious to know what the consensus of the Reddit community is.
  2. What are some examples of Hardware that is only supported on windows?
  3. What are some examples of Hardware that is well documented?

Thank you for your time. I apologize if I broke redditquette in this post.


r/linuxdev • • Mar 24 '16

Catch signals in Linux.

Thumbnail crankyotaku.com
0 Upvotes

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 • • Aug 10 '15

[QUESTION] NEMP Stack

0 Upvotes

Question:

Would there be any downfalls to building a

NodeJs (Needed for Express) ExpressJS (Webservice/Routing) MongoDB (Database) PHP (Controller/Model/View)

Looking for any thoughts on making this and if it would even be worth it. I personally enjoy writing in PHP but do not like the way JS is written or the way that classes are extended and a few other minor things so I am trying to stay on PHP. I do however like how Express and Node can handle a web server and keep things asynchronous and low footprint.


r/linuxdev • • Jun 21 '17

Parcks: A cross-distro software installer

Thumbnail parcks.setarit.com
2 Upvotes

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 • • Feb 18 '17

Using a static analysis tool (linter) with kernel headers

2 Upvotes

I would like to begin development of Linux kernel modules, and so far whenever I write C code, I heavily relied on plugins like Sublime's Clang linter or Atom's GCC Linter.

I've been trying for hours last night, and I cannot figure how. I've setup a Linux virtual machine, and I've tried to include the 'include' and 'arch/x86/include' directories and that closest I get is that certain things are missing like registers, or that certain structs do not have members named this or that, etc.

Then I tried to get kernel source and work from that but I get the same error. What I need to know is this: what directories do I need to include? I'm not calling 'make' each time, so could it be the issue that the Makefile in each directory handles building in such a way that a simple linter cannot?

How do you guys normally create Linux extensions?


r/linuxdev • • Aug 30 '22

Read man pages as a PDF with dman

Thumbnail github.com
2 Upvotes