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?
15 Answers
You can either:
press ctrl+alt+F7 *
Or
run the command startx
* From the 17.10 Release Notes:
- GDM has replaced LightDM as the default display manager. The login screen now uses virtual terminal 1 instead of virtual terminal 7.
Also see Why is my GDM at a different TTY than my desktop environment? for more about the origin of this change.
2To check your default display manager (DM):
cat /etc/X11/default-display-managerTo check if the display manager is running:
ps cax | grep display_managere.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_managere.g.:
sudo start lightdmTo stop a DM:
sudo stop display_managere.g.:
sudo stop lightdmTo restart a DM:
sudo restart display_managere.g.:
sudo restart lightdm 1 Try this command on virtual console,
sudo service $(cat /etc/X11/default-display-manager | awk '{print substr($1,11)}' ) restart 2 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.
- start Xephyr
$ Xephyr :1 - 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.
You can use sudo chvt 1 if you normally do Ctrl+Alt+F1.