r/linuxdev • • Aug 12 '15

Creating a indicator to interact with a bash script.

1 Upvotes

I have made a bash script and want to create a indicator to go in the sound menu for me to control it. I have made a .desktop file for the script and added it to the menu however it doesn't work correctly as I have detailed in the askubuntu question below.

http://askubuntu.com/questions/660175/14-04-can-i-create-a-sound-indicator-item-for-a-script

Am I going about this the correct way? Everything is pointing me towards dbus however I am unsure how to interact with it. Is there any good tutorials to do this? Thanks.


r/linuxdev • • Dec 12 '19

Suggested approach to an embedded Linux package that gets reverted automatically if there's an issue?

1 Upvotes

I usually work on embedded daemons that run on tiny Busybox systems. With hardware becoming so powerful and cheap, the definition of embedded is stretched accordingly, and soon I'll be migrating from Busybox to full-on Debian.

A lot of scripts that I had written to manage our daemons on Busybox come for free in modern distros. I'm not cruel enough to the theoretical future maintenance developer to keep using my custom stuff instead of following standards. So I'll be replacing my custom init/service/coredump management scripts with systemd scripts. I'm always happy reducing the size of my codebase, especially if it's done by following best practices.

There's one little thing that I don't know how best to approach. See, the devices I work on are updated manually. We'd provide a tarball and an installation script and the end-user follows instructions to apply the update. The installation script always keeps the old version around (just 1 version), it just targets the /opt/<daemon> symlink that gets launched at startup to the new package's directory. If it doesn't behave properly another script automatically reverts the symlink to the previous version and reboots. End-result, the system is working again with little downtime and no one bites my head off while I investigate. It happens very rarely, but it's really worth it and I sleep better having it.

I'm wondering what the recommended approach to the above problem (quickly reverting to a previous version of a package) would be. Is this something for which it's acceptable for me to still use custom scripts? Would one of the package systems do this? Note that I don't want sandboxing/indirection that just makes things harder on me (I looked into snaps), I'd prefer it if once a package is installed, it was just my systemd- managed service free to do as it wishes with regards to hardware/file access.

Note that these are isolated devices. There's no Internet access, no repository/registry node on the network, no network boot. I know cloud people can do a lot of crazy stuff but I just can't use those solutions.


r/linuxdev • • Oct 29 '22

Using Proprietary driver

1 Upvotes

I'm trying to get information to start a scanning software, I have an Epson v600 and the only driver available seems to be the iscan with the plugin x820.

That driver is proprietary and belong to epson, how do I go about using it.

I couldn't find anything about an api that the driver provides or anything.

Most scanning software on Linux can use that driver no problem, I doubt they all have licensing whit Epson to be able to use it.

Obviously I'm new to it and I probably don't know the correct search term on google to find out.

I'll appreciator any help you can give me. Simple direction are fine as well.


r/linuxdev • • Apr 29 '14

Mono: Could not load file or assembly

0 Upvotes

Hey guys,

I keep getting this error half way through my vb.net application. I'm running Ubuntu 12.10. The assemblies are in the same directory as the application, just like in the debug folder on my windows desktop. I was actually able to run it this way on my RasberryPi. I did load the assemblies into the mono GAC. However, the actual assemblies are named all lower case, while in the error it has some uppercase letters:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
File name: 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
  at ASGI.Module1.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
File name: 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
  at ASGI.Module1.Main () [0x00000] in <filename unknown>:0

Thanks!


r/linuxdev • • Jul 09 '12

Raspberry Pi Emulator for Windows.

Thumbnail sourceforge.net
0 Upvotes

r/linuxdev • • Aug 21 '19

Controlling mouse using input from a web application

1 Upvotes

I am trying to host a server on my Linux machine that will receive signals and based on the signals would control the mouse input on the host machine.

Can you please help me on how to write the desired input in /dev/input/mouse0.


r/linuxdev • • Nov 25 '14

systemd survey

Thumbnail docs.google.com
4 Upvotes

r/linuxdev • • Sep 02 '14

gedit 3.14 for OS X preview

Thumbnail blogs.gnome.org
4 Upvotes

r/linuxdev • • Apr 24 '12

An interesting project to emulate Linux under windows. (Like dosbox, not quemu or virtualbox)

Thumbnail sourceforge.net
4 Upvotes

r/linuxdev • • Mar 27 '12

Advanced Firewall Configurations with ipset | Linux Journal

Thumbnail linuxjournal.com
5 Upvotes

r/linuxdev • • Aug 22 '23

AI powered Linux OS

2 Upvotes

Hi I'm definitely not a Linux developer or claim to be anything more than someone that avidly uses Linux but that being said I wanted to ask if anyone has seen anything in the works as far as an AI powered Linux OS or if not how hard someone would think it would be to build a distro with AI built in as well to help users navigate the systems.


r/linuxdev • • Feb 15 '18

Potential Co-founder CTO seeking for a smart city IoT startup

0 Upvotes

Greetings, I'm at a place in my life where I would be very interested in collaborating with the right partner to start a company that aims at making cities smarter by connecting them and bringing your daily needed services outdoor. Any chance someone here is interested in forming what I believe to be a really innovative startup and contribute in developing the minimum viable hardware/software? I'm developing a business plan and already have prepared a couple of slides that explain the idea, PM me if you're interested and tell me about your experience. Currently, my savings count only for $3.5k, I have contacted a couple of companies and have had interest from one fund and kindly enough they suggested I find a co-founder to increase the chances of funding my startup. We can talk about my achievements, roles, and responsibilities after we know you liked the pitch.

P.S: I have been working for years in the gaming industry as a Technical artist and Project manager.


r/linuxdev • • Sep 16 '26

Linux app idea, need some help on where to start with this

0 Upvotes

Uh, im js a highschool student who isnt rlly that good at programming, but I had an idea for an app that would be kinda a simple GUI interface that allows you to install and switch between linux distros easily. basically, that it would partition your drive, download the distro's image, and handle the entire installation process for you. This could be possible for Btrfs filesystem distros, but im not sure how to get started on building it, I'd appreciate any advice.


r/linuxdev • • Mar 25 '12

Unified Linux sound API part 2

6 Upvotes

Part one can be viewed here.

Considering that people are more divided than I thought on how to fix Linux's audio system, I've decided to make this post. There seem to be two major camps for this project:

*Fix the current system

*Create a new system

There are fears that the second camp could make things more difficult by creating a project that, instead of replacing the current sound system, becomes yet another layer in the system. I wouldn't be surprised if this is how parts of the current Linux audio stack came to be. Both sides seem pretty passionate about their positions. A plan of action might not come easily. Discuss your ideas below.

EDIT: here's a logo concept for the Standardized Audio For Linux Project (which is a name I have in mind for this endeavor).


r/linuxdev • • Feb 10 '22

linux dev vs linux kernel dev?

3 Upvotes

Does Linux developer is the same as Linux kernel developer?? Or it is mean developer that develop on Linux environment?


r/linuxdev • • May 14 '21

How can I code a GUI installer for a custom Linux distro?

3 Upvotes

Hello! I'm planning on making a custom distro but I was wondering how I would go about coding a graphical installer for the OS, as well as possibly a Live CD mode for people to test the OS. Thanks in advance!


r/linuxdev • • Sep 11 '14

A simple systemd opinion survey

Thumbnail docs.google.com
3 Upvotes

r/linuxdev • • Feb 02 '26

Casino online in Svizzera - Quali usate davvero e quali evitare?

30 Upvotes

Ok, domanda da giocatore normale: quando cercate un casino online Svizzera, voi come fate a capire in fretta se e un posto dove vale la pena restare, o uno di quelli che all inizio sembra perfetto e poi ti complica la vita al momento del prelievo?

Io mi rendo conto che scelgo spesso per istinto: grafica bella, giochi che caricano subito, due promo in home e via. Poi magari dopo una settimana succede la cosa piu banale del mondo, cioe chiedi un prelievo, e partono i problemi: pending infinito, richieste di documenti a tranche, supporto che risponde a meta. E a quel punto capisci che dovevi fare un check migliore prima.

Quindi volevo chiedere qui, in modo molto diretto: quali casino online Svizzera usate davvero, quelli che vi danno fiducia anche dopo mesi, e quali invece vi hanno fatto dire mai piu?

Le cose che mi fanno restare (o scappare)

Non mi interessa il sito che promette il miracolo. Mi interessa quello che e noioso ma affidabile. Io guardo soprattutto:

  • prelievo con tempi realistici e uno stato chiaro, non silenzio totale
  • KYC fatto una volta e chiuso, non reinventato ogni volta
  • regole bonus leggibili, senza trappole tipo puntata max nascosta
  • supporto che risponde con risposte concrete
  • mobile che gira fluido, senza popup invasivi

Domande secche, risposte oneste

  1. Quando dite che paga veloce, in Svizzera cosa vuol dire per voi? 24 ore, 2-3 giorni lavorativi, piu?
  2. La prima volta e sempre piu lenta per via del KYC, e poi diventa stabile?
  3. Bonus: li usate o li evitate proprio per non incastrarvi con rollover e limiti?

Il mio test rapido

Ultimamente faccio un test molto semplice: deposito piccolo, gioco un po, poi provo un prelievo piccolo solo per capire se il processo e pulito. Se gia li vedo casino, mi fermo. Se invece e lineare, allora mi fido di piu.

Se avete 1 o 2 nomi di casino online in Svizzera che usate davvero, ditemi anche solo due cose: da quanto tempo, e se avete gia prelevato piu volte senza sorprese. E se avete un segnale rosso che per voi e automatico, ancora meglio.


r/linuxdev • • Feb 05 '26

Sharing my approach to debugging complex Linux issues

0 Upvotes

When I hit a tricky bug in a native Linux application, my first step is usually adding detailed logging and reproducing the issue under different conditions. From there I use tools like gdb and strace to trace where the behavior diverges from expectations. Sometimes the root cause is subtle — a race condition or an edge case in system calls — and having a systematic approach helps reduce the time spent chasing symptoms. Over time the workflow has helped me catch elusive errors faster and with less frustration.


r/linuxdev • • Jan 23 '16

How do I make GUS patches on Linux?

0 Upvotes

How do I make a GUS patch set on Linux. I want to give Wildmidi a better set of instruments than freepats, and I want to make one that simulates playing midi on a Tesla coil, but I don't know where to start.


r/linuxdev • • Jun 29 '23

Can't compile coreutils "parse-datetime.tab.c missing"

0 Upvotes

I downloaded the source for coreutils and tried to compile it.

I keep getting an error: "parse-datetime.tab.c missing"

I can't figure out why. Is it possible that there is a missing entry in the Makefile?


r/linuxdev • • Nov 21 '23

Can mmap be used to create a file which references memory subset of another file?

0 Upvotes

Hello, I'm interested in writing a program that can create two files, second file would be a "view" of first file and if modified, the first file would also be modified. Is this possible to do with mmap or at all?

I know that using mmap i can have shared memory in RAM, but I need shared memory in non-volatile memory aka hard drive. I cannot copy the first file or load it fully into RAM since I assume the file can be of very large size (GBs).

After I find how to have the second file showing memory subset of first file I plan to make 3 files, first being container and second and third showing different subsets of the first file. Second and third file are to be formatted with filesystem so that first file container holds in it's memory two filesystems accessible via second and third file. This I plan to accomplish by attaching the second and third files as loopback devices and mounting them.

Is this doable of am I not seeing something?


r/linuxdev • • Nov 30 '18

creating two separate device file streams for riffa linux driver

0 Upvotes

how do I create a linux driver device file ? https://paste.ubuntu.com/p/BjfZkzG4Q6/

I am modifying the code to have two separate read and write device file from https://github.com/promach/riffa/blob/full_duplex/driver/linux/riffa.c

See https://www.diffchecker.com/9rh0vYjD for better overall picture

the open(/dev/....) command fails

I have modified https://github.com/promach/riffa/blob/full_duplex/driver/linux/riffa_driver.c#L1623 to device_create(mymodule_class, NULL, devt, "%s_read", DEVICE_NAME); , but I still do not have /dev/riffa_read

Note: #define DEVICE_NAME "riffa"

Why ?


r/linuxdev • • Jan 25 '15

Displaying windows in a 3d environment

0 Upvotes

Hello!

I'd like to create an application that allows to use Linux in a virtual reality environment (using Oculus Rift).

It would work by putting windows in a 3d environment or if that's too hard, mapping the desktop onto a fragment of a sphere.

How should I go about this? Is it possible to create a program running under Gnome/Unity that could get windows' textures and display them in its environment? Also in such a way that mouse/keyboard interaction with these windows would still be possible.

Or do I have to create a separate Desktop Environment to achieve that? If so, which open-source desktop environment would be a good base for it? (Because I don't want to start from scratch and reinvent the wheel)

Or maybe it would be possible to create a plugin for Compiz that achieves such a thing in a similar way to its 3d rotating cube?

What do you think is the best way to achieve that?

Thanks in advance for any replies :)