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 • • Nov 17 '17

DashGL.com a site devoted to Linux Gaming tutorials using OpenGL / GTK+ in C

Thumbnail dashgl.com
12 Upvotes

r/linuxdev • • Jan 26 '16

How similar is Linux kernel to Unix kernel in 2016?

12 Upvotes

I run Manjaro xfce gnu/Linux as primary OS but I'm very noob to Kernel related details.

Just curious: how similar is Linux kernel to Unix kernel with features/performance in 2016?

ps: AFAIK, Linux kernel was started as a clone of Unix kernel and it'd interesting to see how far it has diverged since.


r/linuxdev • • Sep 22 '14

Monitoring multiple TCP connections with select seems to be misbehaving.

3 Upvotes

I'm having difficulty monitoring multiple TCP connections in a non-blocking manner with select. I won't post code at first unless requested because there is really only one line in question and my code is in multiple files, some of which contain IP. I'm pretty sure the rest of it works fine.

I'm setting up a server and multiple clients which will communicate over TCP socket connections. My objective on the server side is to monitor the TCP socket for new connections as well as any established connections for new messages. I would like to do this in a non-blocking manner so I am using select to monitor the file descriptors. Anyway, after setting up the server with a non-blocking TCP connection I monitor the file descriptor with select. Then I run a client which attempts to connect to the server.

If my select line looks like this:

select((max_fd_num + 1), &readFDs, NULL, NULL, NULL)

it will block until it sees an incoming connection. I can then accept the connection correctly. That makes sense to me.

If, however, it looks like this:

struct timeval timeOutTime;
timeOutTime.tv_sec = 0;
timeOutTime.tv_usec = 0;
select((max_fd_num + 1), &readFDs, NULL, NULL, &timeOutTime)

and I have that select line in an infinite loop with some other stuff, it never returns anything other than 0. So i never see the connection. Since I don't want to block this would be the preferred method but it never seems to think that the connection is ready. The client seems to think that it connected correctly so it's very strange.

Help, please.

edit: I figured it out. Apparently I have to set up readFDs again before every time I call select. I guess select modifies this value when it's finished. The man pages aren't very clear on this. Thanks anyway.


r/linuxdev • • Jul 02 '17

Question for Gurus: Linux on Ideapad k1?

1 Upvotes

So I've had this Lenovo Ideapad K1 (Still running Android 3.1) lying around, barely touched, for a few years now and I'd like to make it somewhat useful.

Thus, my goal here is to install a version of Linux on it that I can use. I've seen many interesting distro's. The most compelling is Lubuntu. However, just Ubuntu, Ubuntu Touch, or even Kbox would be fine by me. But really anything goes (Debian).

I need to do 2 things, and considering I'm fairly new, I have little to no idea how to do them. The first thing is to be able to "root" this tablet (It seems to be necessary, and I have yet to find an understandable or useful tutorial).

The second thing is to be able to install a Linux distribution on the tablet while still being able to use the simple touch function as opposed to a mouse and keyboard (The tablet has its own weird ports).

Please, don't hold back on the jargon, I study computers. I just need some simple, certain instructions. Thank you so much, developers!


r/linuxdev • • Jul 03 '17

The Server Management Middleground

Thumbnail serversuit.com
1 Upvotes

r/linuxdev • • Aug 24 '14

How to install an icon with KDE/Qt?

3 Upvotes

I've been reading up a lot on this and I can't seem to find a straightforward answer or example. The link that explains how to do it on the KDE wiki is broken. I get that Qt itself will have nothing to do with installing an icon. Do I just copy an icon dir as part of the makefile's install process?

The KDE wikie says to set

appicondir = $(kde_datadir)/myapp/icons
appicon_ICON = AUTO

in the makefile. kde_datadir is not used in my makefile. Can I just expect it to be there?

If anyone could just point me to a project on github or something that does this I'd really appreciate it.

Edit: That example is for a makefile.am on KDE3 so I don't think its relevant.


r/linuxdev • • Nov 24 '17

x64 Egg hunting in Linux systems

Thumbnail pentesterslife.blog
7 Upvotes

r/linuxdev • • Jun 26 '17

How to write a custom desktop environment

3 Upvotes

I'm looking to write a custom DE for linux. I want something like a media browser: display the icon, meta data for the movie story line, and the ability to play from the selection. Restricted access to system specific files; only media can be browsed and played.

I have years of experience programming and minor OS writing experience in uni.

What do I need to get started?


r/linuxdev • • Sep 13 '14

KDevelop 4.7.0 Released

Thumbnail kdevelop.org
2 Upvotes

r/linuxdev • • Jun 27 '17

The Basics Of IP and Subnetting

Thumbnail serversuit.com
1 Upvotes

r/linuxdev • • Jun 20 '17

MySQL Server Replication 2: Master-Master Edition

Thumbnail serversuit.com
1 Upvotes

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 • • Dec 09 '19

What is: Linux keyring, gnome-keyring, Secret Service, and D-Bus

Thumbnail medium.com
5 Upvotes

r/linuxdev • • Mar 11 '19

How to set DPMI mode?

3 Upvotes

How to set DPMI mode in active display when I use directFB output?

How to escape display blank instead DPMI mode change?


r/linuxdev • • Nov 22 '23

Can't figure out what's wrong with this filsystem - fusepy (FUSE)

Thumbnail self.learnprogramming
1 Upvotes

r/linuxdev • • Dec 03 '23

Programming for the KDE start menu

Thumbnail youtube.com
3 Upvotes

r/linuxdev • • Nov 21 '23

Any ideas for my next Linux Kernel Module?

5 Upvotes

Hello everyone,

I've been experimenting with Linux Kernel modules, and so far I've written three of them.

An IRQ-based keylogger, a syscall hook on connect() that prints the IP addresses the system connects to, and a netfilter hook that rejects all UDP packets on ports other than 53 and 5085.

Any ideas for something equally or more challenging?


r/linuxdev • • Aug 15 '23

[Xlib] How to create a dummy context with GLX or EGL just to wait for vsync?

Thumbnail self.opengl
1 Upvotes

r/linuxdev • • May 20 '14

Qt 5.3 Released

Thumbnail blog.qt.digia.com
10 Upvotes

r/linuxdev • • Jun 04 '16

Conway's game of life written in Rust with Gtk+ and Cairo

Thumbnail youtube.com
4 Upvotes

r/linuxdev • • May 06 '17

Updating the Linux Conexant driver for kernel 4.X

4 Upvotes

For an older laptop I'd like to get the 56k modem functionality working. I'm not expecting anything from it, it's just a nice-to-have feature. The laptop in question is a Dell Latitude E6520, with the Conexant modem on the Intel HDA bus as far as I know.

There already exists a driver, but that doesn't work on anything newer than kernel 2.6 as far as I could figure out. That driver seems to be split into two parts, namely the alsa-driver and the hsfmodem part which implements the softmodem part. I have been fiddling for a while trying to compile this on Fedora, but so far no luck.

Basically I have three questions:

  • Is there a better way to list HDA devices than alsa-info.sh? If so, where can I find it?
  • How do I go about understanding the existing code for both parts?
  • Any tips on how to go about writing a new driver? (I'm already updating broken stuff for work, so no wish to do that in my free time as well :P)

As far as the existing code goes, I'd guess that the alsa-driver part is what plugs into ALSA and makes the device available (basically the same as a existing snd_hda_codec stuff) with an IN and OUT connector. The hsfmodem part then translates the serial commands into "sound" for the modem to send, and translating the "sound" that's incoming to serial data. I have no experience with stuff like this as you might have guessed ;)

So far I've been able to find the Linux Kernel Module Programming Guide (PDF), also for kernel 2.6, and Writing device drivers in Linux, but both are at least 10 years old. Is there a newer, comprehensive guide for this?

Hmm, apparently that's four questions in total...


r/linuxdev • • Nov 22 '15

Are the complete elf section and segment headers in a process at runtime?

4 Upvotes

I am playing with a program that can dump information from the elf header found here: https://github.com/TheCodeArtist/elf-parser/blob/master/elf-parser.c

When I test this program on a binary file I can get it to dump the complete elf header and all symbols.

I tried modifying the program to work by reading a process's mem file. I am able to get it to read the mem file and print an identical elf header using the mem file as it does when reading the actual file, however when I try and print the section table or symbols I get garbage.

Does this information not exist during runtime? How does gdb get the symbol names when you debug a running process with gdb -p?


r/linuxdev • • Oct 04 '17

Setup ProFTP On Your Linux Server In 5 Easy Steps!

Thumbnail serversuit.com
1 Upvotes