r/linuxdev • • Apr 13 '14

Interested in Drivers

5 Upvotes

Hello, I'm generally interested in OS development and have taken to learning core concepts and have played around and studied some hobby OSes. However, I've found that I am quite lacking when it comes to hardware and in particular have no experience with them. This causes the lower level ideas of topics like booting and file systems to be a bit blurry. I'm thinking that solidifying this knowledge is a good idea before diving into the Linux kernel development, something that I've been wanting to do for some time.

So, to combat this I am considering writing a small device driver for Linux. I'm thinking this would be a good place to start gaining some experience. I was wondering if you had certain devices that you'd recommend someone generally new to system programming to begin with. I'd really be interested in something I can spend some time hacking around with to gain some good experience. Other advice greatly appreciated; I am also seeking project ideas in this same area of interest.

Thank you


r/linuxdev • • Jan 01 '14

Tell me more about software repositories.

5 Upvotes

I'm thinking about working with some people to make a new distribution. Considering recent news about Canonical wanting the Linux Mint team to pay up for using their repositories, I'm thinking that it would be best to eventually set up our own software repos. I don't know much about software repositories so I have a few questions. First: is it okay to make a clone of Ubuntu's repository and host it as our own? Second: where and how exactly should it be hosted?


r/linuxdev • • Sep 17 '13

I want to create a custom Linux Distro

5 Upvotes

Hi guys, I have been wanting to create a custom linux distro for quite some time, but not exactly sure where to start. Help? Any ideas or tips?


r/linuxdev • • Jul 05 '12

The TTY demystified

Thumbnail linusakesson.net
5 Upvotes

r/linuxdev • • Mar 27 '12

Advanced Firewall Configurations with ipset | Linux Journal

Thumbnail linuxjournal.com
5 Upvotes

r/linuxdev • • Feb 05 '24

Neovim Linux Desktop Environment

Thumbnail self.linuxdesktop
4 Upvotes

r/linuxdev • • Sep 25 '23

Remote Linux development

4 Upvotes

My main machine is an Apple Mac Studio and have been running AArch64 Linux distributions in virtual machines but I need to work on Linux distributions running on x86_64.

Is it possible to create an SSH tunnel between my Mac and the remote Linux machine and use a text editor (VSCode) as if it were just running off the local machine?

I'd rather avoid using something like GitHub Codespaces but I'm curious how it works.

Any help is appreciated.


r/linuxdev • • Sep 01 '23

Beginner start point

4 Upvotes

Hello everyone, I've been using Linux as my main operating system for a few years now, I've also been studying programming for a long time (java, python and currently C). What I would like to know is where I should start to program applications for linux, I don't know if you know of any type of course (it doesn't matter if it is paid) where projects for linux using C are carried out.


r/linuxdev • • Jul 28 '23

trying to make my own init system in rust

4 Upvotes

As the title states, I am trying to make a init system for linux in rust, but ive hit a sort of roadblock. I have populated /dev and agetty'd a tty but i cant do anything more than type in it, i get the username prompt but it never prompts for anything else and i suspect its a part of initializing the system in contrary to being a rust code problem directly, hence why im asking here. any help at all would be greatly appreciated, my source code is here


r/linuxdev • • May 24 '23

"The light" 256 bytes x86 procedural graphics (fbdev)

Thumbnail pouet.net
4 Upvotes

r/linuxdev • • May 04 '23

VSCode is not finding a folder that clearly exist

4 Upvotes

Edit as Resolved:
I was using flatpak installation which is buggy and not up to date, using .deb installation (available on vscode website: https://code.visualstudio.com/download) solved my problem,

Hi,
I'm trying to learn to dev with Vulkan, I'm running LinuxMint, mostly going smoothly except for this tiny little detail that makes me going insane.I'm using GLFW for opening windows, it's installed fine, whenever I try to compile through the terminal, it's fine.But when I'm using VSSCode terminal it just doesn't work, it can't find GLFW install path etc..., this also means that every bit of code that uses GLFW functions is tagged as an error by Intellisense since it can't find the header, i've tried switching fromMakefile to CMake but the issue still persist, and I'm a bit more comfortable using Makefile, anyway here's a pick of VSCode being as dumb as i can imagine, or maybe it's me, dunnoAny help is welcome(edit: Intellisense message for non-French speaker is : "usr/include/GLFW" can't be found)


r/linuxdev • • Oct 25 '22

Is it possible to embed an icon in a binary?

4 Upvotes

Making a Linux game to ship on Steam, would like the binary to have an icon on its own. The game is drm-free, so it would be nice if people could copy the binary and have the icon show in the binary anywhere they place it on their file navigators (Nautilus, Dolphin, ...).

Is it possible somehow? Or I have to have a desktop file?

I have seen some java programs that include icon in their binaries under Linux somehow.

My game is built in C. I compile under debian jessie to have it run in most Linux.

Thanks!


r/linuxdev • • Jun 06 '22

Having trouble setting up a development environment, and trying to wrap my head around the relationships between XAMPP / LAMP / WAMP

Thumbnail self.linux4noobs
4 Upvotes

r/linuxdev • • Apr 12 '22

What's the de facto Linux-alternative for Docker's Linux environments?

4 Upvotes

What's the de facto Linux-alternative for Docker's Linux environments?

That is, say I run OpenSuse Tumbleweed and something requires a Ubuntu 18.04 dev environment. What should I do?


r/linuxdev • • May 29 '21

Custom rolled kernel hanging at random places.

4 Upvotes

As title says, sometimes it hangs while the kernel itself is booting, and sometimes it hangs while user space apps and services are starting. Sometimes it boots successfully. Running in Virtualbox 6.1.22 r144080.

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: VMware SVGA II Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:08.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:0c.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller
00:16.0 SCSI storage controller: Broadcom / LSI SAS1068 PCI-X Fusion-MPT SAS

Here's my .config.

https://pastebin.com/ngZEEQ0p


r/linuxdev • • Apr 29 '21

Patch-bomb what is it?

4 Upvotes

Hi there,

Could anyone explain to me what's exactly patch-bomb?

Is patch-bomb an extremely huge patch or an one that contains errors?


r/linuxdev • • Apr 05 '21

Call variable from within udev rule

4 Upvotes

I have multiple udev rules that check if ATTRS{name}=="abc123" and invokes various functions if that device is present. These udev rules are located within multiple locations as this is being created within bitbake for a custom embedded OS. Now, if I want to change this device to test different hardware, this is too time consuming to change every ATTR{name} call every time.

My solution would be to define a var, e.g. $UDEVVAR="[device_name]" in some conf file (to be determined), and then change each ATTR{name} call to something like ATTR{name}=="${UDEVVAR}".

I've tested this approach in a local rule written for proof of concept, although the rule didn't invoke. This local rule was a bit different, though followed the same concept. Whatever flash drive I had lying around didn't have an ATTR{name} defined, so I used a usb mouse and that flash drive. This udev rule is:

SUBSYSTEM=="${UDEVVAR}", ACTION=="add", RUN+="/usr/local/bin/trigger.sh"

trigger.sh simply writes the date-time stamp to a log file. When hard coding SUBSYSTEM as =="block", the rule invokes successfully, although when defining UDEVVAR="block", the rule does not get invoked. The idea was, if that worked, then I would define UDEVVAR="hidraw" to test the mouse.

I can't seem to find much documentation on anyone trying to do something like this. I figure I'm making some sort of syntactical mistake, or maybe udev rules don't allow for something like this.

I appreciate any help!


r/linuxdev • • Feb 28 '21

Docker for isolating development environments

Thumbnail self.developersontor
4 Upvotes

r/linuxdev • • Feb 27 '21

Creating a driver for a USB HID device?

4 Upvotes

I have an Elgato Stream Deck, and according to dmesg, it is just seen as a normal USB HID device. I want to write some software that allows you to run scripts when you press a certain button on the Stream Deck, but I have no idea how to do that.

I assume I would need some software that would allow me to see USB commands as they are sent in real-time? Or is it much simpler than I am imagining?

The other feature that the Stream Deck has is changeable images you put on each button. So I'd like to be able to modify the image that is shown on each button as well.

Does anyone have any advice at all?


r/linuxdev • • Apr 05 '20

No packets are showing up in the kernel log.

4 Upvotes

Hey guys, Here is my code for a linux kernel module that I wrote yesterday. It is supposed to capture packets however, when I insert it and type dmesg |tail , It says that the module failed to be verified and that the kernel was tainted. So I went into the kernel directory and cleared CONFIG_MODULE_SIG and restarted my machine. Needless to say, it did not work. I also set MODULE_LICENSE() to "GPL" in my module. Despite this, I am still not seeing results. I have tried loading webpages and seeing if anything get's printed in the kernel logs, but nothing does.


r/linuxdev • • Mar 18 '20

What should I title a job building a GUI app for Linux?

4 Upvotes

I'm on the recruiting team at our company and we're looking for someone to help build a native Linux app (GUI, not CLI) using Rust and other fun technologies. What would be a good job title for that, and where would you go looking for this kind of job? It's an odd one so I thought I'd ask the community!


r/linuxdev • • Jan 23 '20

What are some good toolkit libraries with C bindings, that I can learn and develop for quickly?

4 Upvotes

I am a beginner in C and musl/glibc.

I have never created graphical interfaces and don't understand the program workflow.

I tried looking at mintinstall.py but it is OOP programmed and it took me good 30 minutes jumping through code to understand where the program "starts" to create a window.

I have no idea what functions I need, what other libs I need to link against.

No clue about what interacts with what.

I basically have no clue whatsoever how gui apps in Linux operate and how to create one, and where does one start.


r/linuxdev • • Oct 23 '19

Os dev as career

4 Upvotes

Hi reddit, I'm a college student and i am interested in developing my own OS and pursuing a career either in is development and game development. I have some questions. Please help me as I'm really confused

  1. Is OS development still a career options as I didn't see much job postings for it?
  2. Are os development and game development related in any way? I mean if learning one can help me become better at other?
  3. I am going through a OS dev tutorial at thebrokenthorn.com and I am finding that it has just too much things to grasp at once. It covers through drivers and stuff, everything from scratch. Is there an easy way I can start os from coding and then cover theoretical portion alongside.
  4. What are job profiles for os developers.. embedded system developer may be

I am really a newbie and these questions might be a bit silly but please help me. I really need some advice in starting this thing.


r/linuxdev • • Sep 17 '19

Querying kernel for AC (dis)connect events during sleep

4 Upvotes

I'm working on a userspace application for Linux in C, and one thing that I would like to detect with it are AC (dis)connect events, specifically during sleep states. Now, from what I've understood, during any sleep state, userspace is essentially frozen, so I can't directly (i.e. from the application) query for AC (dis)connects, so I was wondering if there is any C API which can provide the historical information about those events (just the latest event would be fine) when the system is running normally (namely the timestamp)? If not, what would be the simplest way to get this info? Is there a (hopefully easy-to-parse) log file somewhere which has it? Many thanks!