Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 13.10 32-bit. I am using terminal mode to test a Window Manager.

I know I can use Ctrl+Alt+F1 to go to terminal mode from the GUI mode. But there is still graphical desktop running in background.

Is there a command to move from CLI to GUI mode so that I can access that GUI?

share|improve this question
2  
use Ctrl+Alt+F7 to return. –  souravc Jan 11 at 4:30

4 Answers 4

you can either :

press ctrl+alt+F7

Or

run the command startx

share|improve this answer

the best way to test window manager safely is to use Xephyr. see man pages for more details.

I assume you use gnome-terminal here.

  1. start Xephyr
    $ Xephyr :1
  2. Ctrl+Shitf+T open a new tab
    $ export DISPLAY=:1
    $ type_your_window_manager_command_here

Now you can play with your window manager in the Xephyr window.

share|improve this answer

To check your default display manager (DM):

cat /etc/X11/default-display-manager

To check if the display manager is running:

ps cax | grep display_manager

e.g.: if it's lightdm:

ps cax | grep lightdm

(you can then follow up with echo $? command, an output 0(zero) indicate its running or otherwise.)

To start a DM:

sudo start display_manager

e.g.:

sudo start lightdm

To stop a DM:

sudo stop display_manager

e.g.:

sudo stop lightdm

To restart a DM:

sudo restart display_manager

e.g.:

sudo restart lightdm
share|improve this answer

Try this command on virtual console,

sudo service $(cat /etc/X11/default-display-manager | awk '{print substr($1,11)}' ) restart
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.