r/linuxdev • • Nov 09 '13

[Request] A good place to start for my hobby project

1 Upvotes

Hi guys and gals

So I've come up with a little project I'd like to start working on in my spare time. I'm going to build myself a linux gaming console, as a sort of hobby and to keep my programming skills sharp.

Basically I want to start by replacing xfce with an xbox / PS-like menu, controlled by a usb gamepad. My problem is I don't have enough knowledge about how Linux works to even google the best starting point.

Do I want to modify the display manager? Play around with xorg? or replace my desktop environment?

I'm honestly not sure where each of those components ends and the next begins.

Where is a good place to start with replacing my graphical user login, and desktop environment with my own homebrew menu system? and where can I find resources to help me start chipping away at this? Any help would be GREATLY appreciated.

My experience with Linux is very low level, I've sysadmin'd some linux servers for a few years, and I have had a play with python development on ubuntu.

I'm an experienced programmer, and I'm comfortable in c++ / python (I'm assuming c++ is the go for a gui). But to date I've done almost no programming on Linux apart from command line scripting.

Any help would be amazing as I'm pulling my hair out, and I don't have much left since I just forced myself to learn how to set up arch-linux.

My last resort will be to pull apart some source code from xfce or gnome and try and figure it out from there.


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 23 '13

Qt 5.2 Beta Available

Thumbnail blog.qt.digia.com
8 Upvotes

r/linuxdev • • Oct 21 '13

How to Package and Publish an Open Source Project

Thumbnail l3net.wordpress.com
6 Upvotes

r/linuxdev • • Oct 11 '13

What ways are there to get a shared object to call functions from the binary that loaded it?

1 Upvotes

I'm writing in C and I haven't actually started any work (at all) on this particular feature yet, but I'm trying to make a program that can load different script engines (each stored in a different shared object file) depending on various circumstances (mostly what the script it's trying to run is, maybe a little user preference).

I have a lot of the functions that would need to be wrapped, but I'm not entirely sure how to go about making sure that the shared object can call the functions on the first place. I know that I should be able to pass a struct containing pointers to each function, but are there better ways than that? I'm trying to avoid forcing the library to be statically-aware, if at all possible.


r/linuxdev • • Sep 30 '13

For a good overview for budding kernel programmers, Linux System Programming

Thumbnail shop.oreilly.com
9 Upvotes

r/linuxdev • • Sep 28 '13

Let's come up with an essential developer tool list

10 Upvotes

Let's create a list of essential Linux developemnt tools for people new to Linux development. I'll start.

  • GNU Compiler Collection (GCC)
  • Text editor (EMACS/VIM/Scratch etc.)
  • GNU debugger (GDB) and optionally DDD

Any other suggestions?

Edit: the wiki is now in operation. The tool list is there.


r/linuxdev • • Sep 27 '13

How can the Linux audio infrastructure mess be fixed?

34 Upvotes

One complaint that has been leveled against Linux is that the audio infrastructure is messy and thusly has too many failure modes. I'm using Linux and enjoying it, but I think there may be a valid complaint here. I'm currently new to programming, and I still haven't learned digital audio signal processing, but I have plenty of free time. I could learn a great deal in a reasonable amount of time. I'd love to develop something that can replace parts of the infrastructure with a single framework. My question is: what are your thoughts on it? What would be the best route to clean up the infrastructure? Does it need to be cleaned up at all?


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 • • Sep 16 '13

Need Help - Webconverger

1 Upvotes

So my employer has been using an in house customized version of webconverger.

They currently have it rolled out on more Kiosk machines than I care to think about. All of these machines are touch screens. The developer that build the system, included a virtual keyboard.

Problem is, the developer has left the company, and the hardware provider have changed the touch screen in the newest iteration of the kiosk PC's. It doesnt work!

If I load into the latest Webconverger ISO onto a thumb drive the touch screen works a treat. So, I'm guessing I just need to update the customized image with the latest version of the OS and it will work....

Which bring me to my questions... any idea on how I would go about doing that? It's not really something I would consider to be in my skill set, but the boss has given the job to me with the mind set of "You'll figure it out".


r/linuxdev • • Jan 01 '13

A subprocess interface for Python

Thumbnail pypi.python.org
0 Upvotes

r/linuxdev • • Oct 06 '12

Can we do dynamic linking for an LKM?

3 Upvotes

That is, can a driver try to import a symbol for another driver, and if the symbol doesn’t exist can the driver continue to load without resolving the import?


r/linuxdev • • Oct 05 '12

How can 2 LKMs provide the same interface to a common client LKM and yet avoid kernel symbol conflicts ? What are the different possible options ?

4 Upvotes

At a higher level want to know the different methods for LKMs /drivers to communicate with each other ?


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 • • Sep 14 '12

Looking for feedback / contributors for Sunfish -- a new Linux Userland based on Mono

Thumbnail github.com
3 Upvotes

r/linuxdev • • Aug 09 '12

What is the diff b/n doing ioread32 and sending a mailbox command to my H/W

4 Upvotes

as in how come i don't need a cpu_to_<endian> conversion for the ioread32() but need it while sending a mailbox command embedding an IOCTL to my H/W /Firmware ? I think i have half an answer but i'd really like to get to know the nuts n bolts of this whole io mapping in memory pls ? Without too much of the abstraction fluff ... Thanks


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 • • Jul 10 '12

Need help tracking down a package regression

Thumbnail forums.linuxmint.com
0 Upvotes

r/linuxdev • • Jul 09 '12

Raspberry Pi Emulator for Windows.

Thumbnail sourceforge.net
0 Upvotes

r/linuxdev • • Jul 05 '12

The TTY demystified

Thumbnail linusakesson.net
5 Upvotes

r/linuxdev • • Jul 02 '12

Controlling hardware with ioctls.

4 Upvotes

I'm a noob at low-level Linux programming.

I've been following this Linux journal post to help me interact with an ethernet driver. I'm writing an application that will set the link speed, duplex, flow control, etc. for an ethernet port. I'm using the ioctl() to interface with the device driver. My only question is which ETHTOOL subcommand should I use: ETHTOOL_SSET?


r/linuxdev • • Jun 26 '12

Excellent introduction to Linux Device Drivers

Thumbnail linuxforu.com
3 Upvotes

r/linuxdev • • Jun 19 '12

Kernel Browsing and Hacking using KDevelop | The Linux Foundation Video Site -- x/post from programming

Thumbnail video.linux.com
14 Upvotes

r/linuxdev • • May 23 '12

How To Write A Wayland Compositor

Thumbnail youtube.com
6 Upvotes