You are on page 1of 1

(RHEL 6)

How to go to GUI mode from command/shell mode


temp switching of runlevel 3 to runlevel 5
GRUB = GRand Unified Boot loader
# startx
(for windows we change bootsequence and time by using cmd : bcdedit (boot
configuration data editor)

open and grub-md5-cryptedit


# vi /boot/grub/grub.conf

change time to 10 sec


change and save/exit
reboot your pc
# reboot

when red screen comes


press 'e' and then select 2nd line and press 'e'
type and the end single ( runlevel 1 )
in this mode you can change your root password
# passwd root
it will ask you enter new password and confirm password
( both password must be same )
# reboot
and try login with new password for root.

now if you want to give password to grub.conf


( in order to stop changing root password and OS boot sequence also )

Create encrupted password


# grub-md5-crypt
type password and it will convert it back to crypt and copy this
password
and open in another terminal window

# vi /boot/grub/grub.conf
paste above title
password --md5 (paste crypt password)
save/exit

# reboot
and then try to enter using 'e' it will ask you for password.

You might also like