LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-06-2011, 04:51 PM   #1
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Rep: Reputation: 1
Programming Linux


Hi. I have been wondering what language Linux is programmed in. I know that the kernel is programmed in C. Is the kernel where things such as layout of menu is located, or visual things such as that, or is that programmed in a different language or located somewhere else?
 
Old 03-06-2011, 04:59 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
As you rightly said, the kernel is in C. The looks of your desktop are mostly dependent on your Desktop Environment / Window Manager. For example: KDE, Gnome, XFCE, Fluxbox, Openbox, etc.
Changing the things that you mentioned doesn't usually require much programming skills. Very often you can modify a window manager's config files or there's a GUI application to set those. Those things vary depending on a DE/WM. You'd have to be more specific to get an answer.
 
1 members found this post helpful.
Old 03-06-2011, 05:58 PM   #3
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Each desktop environment is programmed in whatever languages the developers like. It is my understanding that KDE is mostly programmed in C++ with QT, and Gnome is mostly programmed in C and C# with Mono.

I happily invite corrections and expansions.
 
Old 03-06-2011, 06:33 PM   #4
hogar.strashni
Member
 
Registered: Dec 2007
Distribution: cp6
Posts: 44

Rep: Reputation: 2
I'd like to add something that maybe you two haven't made clear enough. Desktop environments are NOT part of the kernel. If you are interested in the way GUI is functioning, you might think of it as consisted of layers. Kernel -> X server -> Desktop environments.

My humble opinion is that the most lovely thing about Linux is that common things of various projects used to be condensed into one package, thus making the job for programmers much easier. GUI is probably the best example. There are various Desktop environments, which all use single X server to connect them to kernel. If the code haven't been opened it would never be possible. I know most of you know this, but I couldn't hold myself from writing it
 
Old 03-16-2011, 07:43 PM   #5
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Original Poster
Rep: Reputation: 1
What I was mainly wondering is the Gnome desktop in Linux Mint 10. I'm going to be learning some programing, and was wondering if what the desktop was programmed in, so as a challenge, I could try modifying it. Also, is this possible to do from Linux, without reinstalling it? What I mean by this is can I go into Linux, change what I want, without reinstalling Linux on the same computer, or a different one. Please don't post replies saying that I need a lot of programming knowledge (which I lack). I just want to know if I can do what I asked.
 
1 members found this post helpful.
Old 03-17-2011, 12:35 AM   #6
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by nine9nine View Post
What I was mainly wondering is the Gnome desktop in Linux Mint 10. I'm going to be learning some programing, and was wondering if what the desktop was programmed in, so as a challenge, I could try modifying it. Also, is this possible to do from Linux, without reinstalling it?
I'm not aware of anything that would stop you. The source code is all out there as far as I know. Linux is extremely modular so it is entirely possible to have multiple versions of the same libraries. I'm sure the DE devs do.
 
Old 03-18-2011, 03:55 PM   #7
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Original Poster
Rep: Reputation: 1
Yes, but would I be able to do this without reinstalling Linux?
 
Old 03-18-2011, 07:52 PM   #8
hogar.strashni
Member
 
Registered: Dec 2007
Distribution: cp6
Posts: 44

Rep: Reputation: 2
well you can change and recompile just gnome desktop environment. You don't have to reinstall entire operating system, if that's what you asked...
 
Old 03-18-2011, 08:18 PM   #9
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
In your specific case you are surely talking about some GUI elements like Menu or other graphical items which are mostly developed in Python.
You can find the source code of most of LinuxMint here: https://github.com/linuxmint/
You can edit and recompile the sources, replacing the original single applications, without reinstalling anything.

Last edited by Slackyman; 03-18-2011 at 08:20 PM.
 
  


Reply

Tags
desktop environment, kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between windows c/c++ programming and linux c/c++ programming? deshpandemanasi Linux - Software 1 01-24-2011 06:49 AM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration