Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I understand that Linux is an open source OS, in other words I have the ability to change whatever I want with the source code of the system. Where is the source code located? For example I would like to add a new event to the mouse which let the user logout when the mouse pointer is moved left then right. Can someone provide me with some lessons or anything that would me to understand how changes to the Source code happens?

share|improve this question

closed as too broad by Wilf, bain, Braiam, psusi, Sylvain Pineau Jul 29 at 15:43

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

What are you asking is not always so simple. Here you can find a guide from title CompilingEasyHowTo: after you download the source code of the program or package wanted you can modify and recompile it.

It's needed to keep present what is a Linux_distribution (excerpt from wikipedia):

A Linux distribution (often called distro for short) is an operating system made as a collection of software based around the Linux kernel and often around a package management system.
...
Most distributions come ready to use and pre-compiled for a specific instruction set, while others are distributed in source code form and compiled locally during installation.

So after that you downloaded the source code you can read and modify it before you compile it again. But it is not a trivial task, especially on a running system.

You can start to refer to other posts, e.g. here, to obtain some informations about the source code, how to obtain and so on.

There are may other posts that can help you on the compiling step, to locate the source of the kernel, and more generically about How to install application from source.

Many programs do not need do be compiled again to choose their settings. Some other yes. Sometimes you need to install a specific program and you need to search for it.

A way to modify the actions related to the mouse gestures is to install a program that will do it for you. The hard way is to compile a kernel module or to modify X system.

A suggestion: go easy at the beginning and increase the difficulties with time and experience.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.