Fix Windows Registry in Ubuntu

Most of the time you need to edit windows registry to solve windows problem. But what you will do if your windows is not getting loaded, you will search for software or live cd of a program to fix you registry. But no need of doing this if you have Ubuntu live cd or Ubuntu on another partition. To access windows registry boot your need to boot your machine in Ubuntu

Please note use this utility on your risk. I have tested chntpw on Ubuntu 11.04 with Windows XP SP 2.

Install chntpw utility

sudo apt-get install chntpw

Mount Windows partition:
Find the Windows partition:

sudo fdisk -l

Assume it is on /dev/sda1. Next step is mounting of the partition:

sudo mkdir /media/windows 
sudo mount /dev/sda1 /media/windows

Registry editing
To go in proper hive you must know the Hive name. For same please refer following table.

Registry Key Name 	             Hive Filename
HKEY_CURRENT_USER 	             NTuser.dat
HKEY_LOCAL_MACHINE\SAM 	             SAM
HKEY_LOCAL_MACHINE\SECURITY 	     SECURITY
HKEY_LOCAL_MACHINE\SOFTWARE 	     SOFTWARE
HKEY_LOCAL_MACHINE\SYSTEM 	     SYSTEM
HKEY_USERS\DEFAULT 	             DEFAULT

For eg. you need to go HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Themes and change the Start value to 4.

then do as follows

chntpw -l /mnt/sda1/WINDOWS/system32/config/system

At the new command prompt type ? to see various commands used for registry editing. Most useful commands are dir,cat,cd,ed etc.

Now type ‘dir’ command to see all the subkeys under the root key. You will see many ControlSet00* keys under this, but where is the CurrentControlSet key. We need this subkey to edit properties of Themes service..!

Well, don’t be panic. The answer is hidden in ‘Select’ subkey. Now enumerate all the values under ‘Select‘ subkey as shown below.

cd Select 
dir

Now the value associated with ‘Current’ subkey will tell you which is the currently used ControlSet00* key. For example if the ‘Current’ has value 2 then that means you have to select ‘ControlSet002′ etc. On my machine the ‘Current’ has value 1. So I am going to select ‘ControlSet001′ key.

Know we know which controlset we have to use for our purpose. Now select it and move on to Themes subkey as shown below. Note that we are under Select key. You have to go back to root key to choose the ControlSet key.

cd ..
cd ControlSet001\Services\Themes

Now type ‘dir’ command to see all the names and their values under this key. We have to just change DWORD value of ‘Start’ to 4 using the ‘ed’ command.

ed Start

When you are prompted to enter new value, just type 4 and press ‘ENTER’ to set the new value.To verify use the below shown command.

cat Start

Once you have modified all required changes, type ‘q’ to quit the registry editor and then press ‘y’ to save your changes. After that restart the system and you should be able to login normally without any problem.

Upgrade From Ubuntu 11.04 to Ubuntu 11.10 Alpha

This how to shows you how to upgrade from Ubuntu 11.04 to Ubuntu 11.10 Alpha release. Please note do this on your own risk as Ubuntu 11.10 is in still alpha stage.

First it is recommended that you install all pending updates before upgrading to the next release of Ubuntu.

To fully update your system, run the below command

sudo apt-get update && sudo apt-get upgrade

After updating, open a terminal and type

sudo update-manager -d

It will open Update Manager, from the window select Upgrade button next to New Ubuntu release ’11.10′ is available.

Then read the release notes and click Upgrade

Wait for all Ubuntu 11.10 packages to be downloaded and installed

When prompted during the upgrade, choose lightdm as your default display manager since it is going to be the default for all new releases of Ubuntu.

When all packages are downloaded and installed, click Restart Now to complete.

That’s it.

Install Kernel 2.6.39 RC4 on Ubuntu 11.04

Recently I need to upgrade Ubuntu kernel version. I tried to do same with kernel-ppa. But it was not working. So I need to install it manually.

I am using 32bit machine and my current kernel version is :

uname -r
2.6.38-8-generic

To update the version to 2.6.39 RC4 download the kernel first:

mkdir /tmp/kernel
cd /tmp/kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.39-rc4-natty/linux-image-2.6.39-020639rc4-generic_2.6.39-020639rc4.201104191410_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.39-rc4-natty/linux-headers-2.6.39-020639rc4_2.6.39-020639rc4.201104191410_all.deb

Now we need to install kernel-image as well as kernel-headers

cd /tmp/kernel
sudo dpkg -i *

Now we need to reboot our machine to update the version:

sudo init 6

While rebooting choose kernel 2.6.39-020639rc4. Once the reboot confirm the kernel version by running

uname -r
2.6.39-020639rc4-generic

For 64bit machine you can download file from below links:
linux-image-2.6.39-rc4-amd64.deb
linux-headers-2.6.39-rc4-all.deb

Remote Desktop Sharing Ubuntu

This is the quick how to on installing VNC on Ubuntu for Remote Desktop sharing,

To, install VNC on Ubuntu, run

sudo apt-get install x11vnc vnc-java

Now, we need to set up a password for clients, to do so run,

x11vnc -storepasswd

Now to start VNC in background run,

nohup x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 &

That’s it. Now you can access your UBUNTU machine from anywhere. Remember if you are behind firewall then you need to open 5800 and 5900 port.

Firefox 8 on Ubuntu 11.04

To install Firefox 8 on Ubuntu 11.04 you need to add mozilla-daily ppa to your repository. To add mozilla-daily ppa run following commands in terminal:

sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get install firefox-trunk

To start Firefox 8 click on the Applications launcher and type: Nightly

Page 6 of 8« First...«345678»
rss twitter facbook

Categories

Archives