How to get into Graphical mode in kali?????


Text mode to Graphical Mode:
I have recently faced a problem with my kali linux, The problem is that i can't get into graphical mode, When ever i reboot my kali its starts in terminal mode(tty3) and asked root password when i typed password it still shows me text. i tried many things to get into graphical mode.
Typing Startx to enter into graphical mode but it is used in backtrack not in kali. Later i tried pressing control+alt+f7 but still it didn't worked.
After searching all websites and blogs i noticed many things
Like some told to type "use fsck command then reboot, first login by entering your password"
I tried fsck and came back with an error e2fsck cannot continue, aborting
And even tried gdm3 but it didn't worked
At some point i decided to reinstall the KALI. But i feared to lost the files in which i saved.
Before typing "apt-get update" and "apt-get upgrade" to install missing files Let's check the Network connectivity by following steps
Service networking start
Service Network-manager start
Service samba start
dhclient eth0
(ifconfig to check the net interface configuration is ok and eth0 is working right)


Then Update and Upgrade the kali..

Next install "chkconfig" if its not installed through "apt-get install chkconfig"
Then check the status of level 2 of gdm3 using "chkconfig --level 2 gdm3"
Install gdm3 service if it's not installed 
when i typed gdm3 it showed me "bash: gdm3:command not found"
then i typed  sudo "apt-get install gdm3"
after installing i just typed gdm3 in the terminal. Then it directly taken me to the graphical mode..

Graphical mode to text mode:


Its good thing i like in BackTrack was it boot in console mode. It is quite helpful if we have to run few console commands instead of using full GUI.
But Kali linux directly boot into graphical mode. To make it boot into command line mode we need to remove auto start of gdm service (kdm or xdm based on your desktop manager) from current runlevel. 
First we need to know current runlevel. Using following command   who -r


Remember your current runlevel from output of previous command. Mine is 2.
We also need to know service name of display manager we are running, check it with following command (replace 2 with your run level)

chkconfig --list | grep '2:on'


It will show all services set to autostart for run level 2. Look here for entry similar to gdm or kdm or xdm etc. I am running gdm3.
Ok, now we have identified which service (gdm3 in my case) we have to turn off at which run level (mine is 2).
Now issue following command to stop gdm3 service for run level 2.

chkconfig --level 2 gdm3 off

Now on next boot it will boot into command line login. After login use startx command to start xsession.

IFFail: Follow the upper procedure to retrive the GUI mode


"PLEASE SHARE AND COMMENT IF YOU LIKE"