LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-31-2010, 10:54 AM   #1
jone kim
Member
 
Registered: Apr 2010
Posts: 185

Rep: Reputation: 16
registry


Is there any registry in Linux? If no then what is the alternative for it?
 
Old 05-31-2010, 11:49 AM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
No, and there is no one-to-one equivalent. You can think of the qualities of the registry as being divided into multiple different places. Mainly . . .

1) The flat configuration files for each program/application. (Mostly, but not all, in /etc and sub-folders thereof.)

2) The system start-up scripts in /etc/rc.d and the file /etc/inittab
http://www.redhat.com/docs/manuals/l...n-process.html

3) The kernel configuration, determined at build-time, but usually a copy is at /boot/conf

I suppose that, for some other registry keys, there are even a few more places that the "equivalents" could be found. What specifically, if anything, are you looking to find?

You have to be careful when learning a new operating system to avoid looking to always draw parallels between it and another operating system that you already know. It is very tempting to want to bring knowledge along with you, but it mostly only serves to confuse. Believe me, when parallels are there, you will recognize them. Seek to learn a new operating system as if it was the first one you ever encountered. After you have encountered a few, the handful of concepts that are universal will become apparent to you.

Last edited by foodown; 05-31-2010 at 11:52 AM.
 
1 members found this post helpful.
Old 05-31-2010, 12:20 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you really want to see the similarity to Microsoft software, recall that the MS "registry"was introduced as a "replacement" for the Windows 3.1 *.ini files. The "rational" that MS offered was that the "ini" files were too easy for system users to mess up, and that they exposed propitiatory information to "unauthorized" users.

The "ini" concept had been imported to MS software by developers familiar with the UNIX operating systems use of files in /etc (and hidden files in ~/.*) to store run-time information for programs. Since GNU/Linux was created as an "open," non-propitiatory, OS (that, somewhat later, was modified to [almost] conform to the POSIX UNIX standards) there was no need to "protect" propitiatory information. Thus there was no need to replace the /etc files with a "registry."

Note the reference to ~/.* above. If you do a ls -a ~/.* in a terminal window, you'll see several "hidden" files containing local settings or other information specific to your user id. (Caution: Some of those hidden files control the X-server for your display. Messing with them can cause your X-server to stop working.) Most of the other files a simple text files that you can look at and change as you feel is appropriate.

Note also that most Linux file browsers have an option, usually under "View" or "Settings," to display hidden files.

My point is that, in addition to the files in /etc, your user-specific settings are usually in hidden files stored (usually) in your home directory (~/) with names that start with a dot.

Last edited by PTrenholme; 05-31-2010 at 12:21 PM.
 
Old 05-31-2010, 12:54 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Linux Filesystem Hierarchy - http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/
General overview of the Linux file system - http://tldp.org/LDP/intro-linux/html/sect_03_01.html

The closest thing to a registry in Linux is Gnome's gconf.
GConf configuration system - http://projects.gnome.org/gconf/
 
Old 05-31-2010, 01:32 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
As stated above there is no such thing as a registry in Linux, only config files and logs.

What exactly do you need that a registry would provide ?
 
Old 06-01-2010, 12:21 AM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Like others have said the Windows like registry in Linux is its init config, scripts, configs, and environment variables. Also some programs in Linux uses mySQL and sqlite. Though there is a command that will list print out all the configs that will resemble like a Windows registry if the Windows registry is exported. The size is huge though.

Sorry I do not remember the command.

The reason why Microsoft put all the configs in the registry is because of space. Text or ASCII files takes up more space than binary. Also they want it be all in one place and provide some standard. The standards have not been comply completely by every Windows developer, so you will have to clean up the mess or else you just have to do a re-install. Using binary files makes it easy to edit with GUI. Linux configs are ASCII that relates to INI files. INI files are harder to deal with when using GUI programs. Though if XML like formating for configs are used, a human or GUI can edit with minimal problems. KDE programs and others uses XML for its config. Apache and CUPS uses a non-valid XML format which makes it hard to create a GUI program to edit them.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
registry analogue?? vaalu Linux - Newbie 19 12-30-2007 08:19 PM
a Linux registry? james2b Linux - General 12 09-10-2007 05:07 PM
Registry Concerns ille.pugil42 Programming 4 01-11-2006 09:52 PM
Gnome 2.8 - containing a registry? scuzzman General 2 11-08-2004 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:41 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
Open Source Consulting | Domain Registration