C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
Changing Login from Console to X at Startup
 

16.10. Changing Login from Console to X at Startup

How do I change my login from the console to the graphical screen?

Instead of logging in to your system at the console and typing the startx command to start the X Window System, you can configure your system so that you can log in directly to X.

You must edit one file, /etc/inittab

Open a shell prompt. If you're in your user account, su to root by typing

su

Now, type gedit /etc/inittab to edit the file with gedit. The file /etc/inittab will open. Within the first screen, you will see a section of the file which looks like this:


#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:

To change from a console to a graphical login, you should change the number in the line id:3:initdefault: from a 3 to a 5.

WarningWarning
 

Change only the number of the default runlevel from 3 to 5.

Your changed line should look like the following:

id:5:initdefault:

When you are satisfied with your change, save and exit the file using the [Ctrl]-[x][Y] for yes.

Now, your next login after reboot will be from the graphical screen.

Главная