PDA

View Full Version : Linux Registry Editor



Bungo Pony
January 26th, 2008, 02:59 PM
I don't know if this exists, but it would be REALLY useful if it did.

Last night, my wife booted into Windows on my PC. She usually does it to play one game that won't run on her PC. Anyway, I don't know what she did, but I got infected with a really nasty piece of malware. So, I'm currently in Linux cleaning it out :D

Anyway, I'll probably end up back in Windows to manually fix the registry. It would make things REALLY easy if there was a Windows Registry Editor for Linux. Does such a thing exist?

forrestcupp
January 26th, 2008, 03:23 PM
I wonder if you could run regedit with wine. I know wine has its own regedit, so maybe you could run the Windows one with it.

LaRoza
January 26th, 2008, 03:51 PM
Did you make any restore points? They are just backups of the registry.

Bungo Pony
January 26th, 2008, 03:59 PM
Well, finally got the bloody thing removed. What a pain. In case you're wondering, it was storageprotector.com. I couldn't even run HiJackThis.

After seeing the infections, it looks like my wife was using IE, even though I have Opera installed. Perhaps I should install Firefox for her to use (which she likes). Might save me a headache or two in the future.

Just another reason for my slow migration to Linux. Unfortunately, I was getting that damn Gnome error again that I've been having problems with, so that's why I booted into Windows. Even though both OSes have their faults, it's Windows that costs me more time, not Linux.

And I may just try running regedit in Wine :D

Bungo Pony
January 26th, 2008, 04:07 PM
Just tried running RegEdit with Wine. By default it loads up the Wine Registry. I'm guessing it's possible to import the real Windows registry, but I don't know where Windows stores it.

gn2
January 26th, 2008, 04:44 PM
Perhaps I should install Firefox for her to use (which she likes).

Good idea, if you install the Firefox IETab add-on you can run Windows Update through it, so you can totally remove Internet Explorer altogether.

jrusso2
January 26th, 2008, 05:13 PM
Good idea, if you install the Firefox IETab add-on you can run Windows Update through it, so you can totally remove Internet Explorer altogether.

Not so sure you can remove IE entirely as it is used in many other applications including Firefox IE Tab

phrostbyte
January 26th, 2008, 05:45 PM
Yes, it's called gconf-editor :)

But remember Linux is not Windows! The same concepts aren't always there. In the case of gconf, only Gnome applications use it. KDE and most of Linux use simple text files for configuration.

LaRoza
January 26th, 2008, 05:58 PM
Yes, it's called gconf-editor :)

But remember Linux is not Windows! The same concepts aren't always there. In the case of gconf, only Gnome applications use it. KDE and most of Linux use simple text files for configuration.

The title was misleading. The OP wants to edit the Windows registry from Linux.

popch
January 26th, 2008, 06:03 PM
You can backup and restore the Windows registry with Linux if you have a dual boot setup or if you run Windows in a virtual machine, I think. That's something which can be somewhat difficult to do in Windows, especially the restoring.

I don't know about an editor, though.

forrestcupp
January 26th, 2008, 08:06 PM
Just tried running RegEdit with Wine. By default it loads up the Wine Registry. I'm guessing it's possible to import the real Windows registry, but I don't know where Windows stores it.

Did you use the wine version of regedit, or did you actually navigate to regedit.exe on your Windows partition and run it with wine?

Bungo Pony
January 27th, 2008, 04:50 AM
Did you use the wine version of regedit, or did you actually navigate to regedit.exe on your Windows partition and run it with wine?

First, I navigated to my Windows directory using the terminal. When I saw that the Wine registry loaded instead of the Windows one, I tried doing a right-click in Nautilus and "run with" which also brought up the Wine registry.

BTW, I am running a dual boot system.

hhhhhx
January 27th, 2008, 05:35 AM
i would probably just reinstall wondoze

Christmas
January 27th, 2008, 06:19 AM
As far as I remember the Windows registry is kept in several files inside c:\windows or c:\windows\system (don't know the exact names). So you can probably edit them manually from Linux or if they are in some binary form use Wine's registry editor.

LaRoza
January 27th, 2008, 06:21 AM
As far as I remember the Windows registry is kept in several files inside c:\windows or c:\windows\system (don't know the exact names). So you can probably edit them manually from Linux or if they are in some binary form use Wine's registry editor.

They are in binary form.

Antman
March 25th, 2008, 03:36 PM
Hmm... just found this thread. I am looking for a way to edit the Windows registry from linux too.
Hmmm... I guess I could try and find a windows program to do it and just run it with Wine?!? hmmm

regomodo
March 25th, 2008, 03:39 PM
there must be a form of doing so as there is a linux live cd that can wipe administrator passwords and other such user account settings. I'll try and find the live-cd distro and they may have info on how they edit the registry

[edit] Found it (http://home.eunet.no/~pnordahl/ntpasswd/). It apparently is an alomost fully-fledged registry editor as well. I've only used it to reset passwords

BDNiner
March 25th, 2008, 06:09 PM
If you have a second windows computer with a different IP address you can connect to a network registry. it is in the file menu of regedit. I have done this across a VPN from South Florida to a computer in Tennessee. I don't know if regedit in wine can do this because i don't have it installed.

Bungo Pony
March 25th, 2008, 06:46 PM
there must be a form of doing so as there is a linux live cd that can wipe administrator passwords and other such user account settings. I'll try and find the live-cd distro and they may have info on how they edit the registry

[edit] Found it (http://home.eunet.no/~pnordahl/ntpasswd/). It apparently is an alomost fully-fledged registry editor as well. I've only used it to reset passwords

Wow, thanks for posting that! I just may give it a try.

I've pretty much left Windows to rot until Hardy comes out, and I'll re-do my whole PC. But that utility may be useful when I have to fix other people's PCs.

ice60
March 25th, 2008, 08:58 PM
this is a very good registry editor, it might run with wine?? it's about 100 times faster then regedit.
http://www.resplendence.com/reglite

Bungo Pony
March 25th, 2008, 10:25 PM
this is a very good registry editor, it might run with wine?? it's about 100 times faster then regedit.
http://www.resplendence.com/reglite

The problem is which registry will it read? The one in Windows, or the one Wine uses? When I ran Regedit in Wine from the windows directory, it loaded up Wine's registry.

thisllub
March 25th, 2008, 11:22 PM
Just another reason for my slow migration to Linux. Unfortunately, I was getting that damn Gnome error again that I've been having problems with, so that's why I booted into Windows. Even though both OSes have their faults, it's Windows that costs me more time, not Linux.

And I may just try running regedit in Wine :D

I have been running Linux since SUSE 6 and have never had a trouble free X system.
Until I started running Openbox.



The Windows registry is in windows/system32/config
Windows opens it exclusively so you can't copy it while windows is running.


I believe it may be possible to edit it in Wine by copying it over Wine's registry but if the registry is corrupt it won't work anyway.

You are better to copy a non corrupt hive file e.g. software.sav
like this

I run XP in VirtualBox so I set my XP VM to boot from a Ubuntu ISO. This gives me a Ubuntu VM with an XP hard disk.
I boot the XP machine with a Ubuntu CD and copy the hive files from the Ubuntu / XP VM via the network.

It does work but some, many or all of your Windows settings will be screwed.

ice60
March 26th, 2008, 05:22 PM
The problem is which registry will it read? The one in Windows, or the one Wine uses? When I ran Regedit in Wine from the windows directory, it loaded up Wine's registry.

that's what i was thinking too, i was going to say you can just run regedit from the CLI and it will open wine's own regedit, but it does the same thing. but, i'm sure you can tell it which registry to open because registry editors aren't connected to the registry, they just read the registry binary blob. there should be a switch you can use to point the reg editor to the registry you need to read.

here's the first pages i opened for 'edit the windows registry remotely', there are lots more. it should allow you to associate the editor to a non local registry. you should be able to just run wine's native regedit by typing regedit from a terminal.
http://docs.rinet.ru/Registratura/htm/ch11.htm
http://support.microsoft.com/kb/314837

jonathan morales
October 2nd, 2009, 06:02 AM
I got this working, so here's a simple how-to:

1) copy regedit32.exe from c:\windows on a real windows machine to the /home/user/.wine/drive_c/windows directory

2) copy these libraries from c:\windows\system32 on a real windows machine: authz.dll, alcui.dll, ulib.dll, clb.dll. They go to the ./wine/drive_c/windows directory also

3) run it in a terminal by wine regedit32.exe. When you get in, you can edit other registries by loading a hive. Just go to a key where the option under file>load hive option is allowed (for example it gives you the option to load a hive under the <user> key)- then navigate your way onto the windows file system in question, make your way over to c:\windows\system32\config\ and load the hive you need to mess with (e.g. sam for user account information, software for software, etc.)

This is the real windows registry editor, rather than a dumbed down version like the one that wine has by default. Now if somebody would put this on a live linux cd, along with gparted it would blow away even the ultimate boot cd in a computer technicians toolkit.

allenwjones
October 14th, 2009, 03:39 PM
Hello!

I have scoured the interweb for some means to export specific registry keys (such as drive mappings and network printer locations) for backup from linux.

Your solution (as listed above) seems to be a good way to edit the registry from linux (using the GUI) but have you attempted to export keys using the regedit command modifiers? My goal would be to automate this using a BASH script. However, if I cannot specify which registry to modify, this solution may not work.

I will be testing your solution and will post any successes I have with the command line, but it would be nice to have confirmation from someone with more experience..

Thanks!

gsiliceo
December 3rd, 2009, 05:18 PM
@jonathan morales

It doesnt work anymore in 9.10 =( i did all the steps, copying files from my windows xp partition to the wine directories and the load hive option doesnt appear in any of the registry keys.

By the way you made a little mistake is not alcui.dll but aclui.dll and is not regedit32.exe but regedt32.exe.

I even removed the regedit.exe from wine directory and still nothing.

Thanks anyway i'll keep looking for a simple registry editor that works in wine.

gsiliceo
December 3rd, 2009, 05:27 PM
OMG i deleted all regedit.exe and regedt32.exe from all wine directories and when i issue wine regedit still opens the dumbed down version! wtf what is it loading?

Psumi
December 3rd, 2009, 05:39 PM
Last night, my wife booted into Windows on my PC. She usually does it to play one game that won't run on her PC. Anyway, I don't know what she did, but I got infected with a really nasty piece of malware. So, I'm currently in Linux cleaning it out :D

Says the man with malware in his avatar.

RiceMonster
December 3rd, 2009, 05:40 PM
Says the man with malware in his avatar.

Chance the avatar is used for humorous reasons: 0%


Also, old thread is old

Psumi
December 3rd, 2009, 05:42 PM
Also, old thread is old

Tell that to gsiliceo

forrestcupp
December 3rd, 2009, 05:58 PM
Interesting necroposting.

I was the first poster! \\:D/

Psumi
December 3rd, 2009, 05:59 PM
Interesting necroposting.

I was the first replier! \\:D/

fixed.

pirulo
January 14th, 2010, 03:42 PM
The utility "Offline NT Password & Registry Editor" has such feature. It can be found at :

http://pogostick.net/~pnh/ntpasswd/

The address has changed since last post !

tarator
January 20th, 2010, 05:29 PM
I used PCRegedit (http://www.pcregedit.com/) to edit my Windows Registry.
(I couldn't use the Windows built-in regedit because of a login/logoff-loop.)

This program is freeware.

It worked great for me!!!

It's a small Linux Distribution which can't do anything except editing the windows Registry.

Just download the .iso file, burn it on CD and start from CD.

:popcorn:

MasterNetra
January 20th, 2010, 06:22 PM
Just a thought. Prehaps adjusting wine and its C: drive to that of the windows partition might of done the trick just a thought...

CJ Master
January 20th, 2010, 07:09 PM
The thread that just won't die.

zx5000
January 27th, 2010, 04:37 PM
Ah yes as long as the windows registry exists so will the desire for a solution.

Reged
I have tried reged but it is very clumsy, crashes often and some documented features just don't work. For example the help states you can get all the keys in the hive with the . designator but then it complains that it cannot find key ".".



reged version 0.1 080526, (c) Petter N Hagen
-x <registryhivefile> <prefixstring> <key> <output.reg>
Xport. Where <prefixstring> for example is HKEY_LOCAL_MACHINE
<key> is key to dump (recursively), . means all keys in hive

-e <registryhive> ...
Interactive edit one or more of registry files
-v : More verbose messages


Reged does come with the source so I plan to look at extending it's capabilities to add a batch mode to it.

PCRegedit
I downloaded PCRegedit and it's good if you want a bootable CD with a GUI. It did write to my XP's dirty even though I didn't save any changes bit thus forcing a CHKDSK cycle on next boot. I wonder what else it did?

Neither offer a search function and PCRegedit does not export or import.

That's my two bits.

Elfy
August 1st, 2010, 12:48 PM
Thread closed - necro.