Disable ubuntu desktop 17.10  GUI and startup with command only

MASWORLD used Ask the Experts™
Hi Experts
i need to disable ubuntu desktop 17.10  GUI and startup with command or tty only
i googled for this and i found that i need to run this command
sudo systemctl stop lightdm.service
but i got error the lightdm is not available
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fractional CTO
Distinguished Expert 2018
This means... lightdm is not available, so you're using some other window manager.

You can used the following command to list all installed packages + apply various grep's to locate any window manager installed...

dpkg -l | egrep -e window -e manager

Open in new window

Or something similar.
Distinguished Expert 2017

Removing gui components IMHO is unnecessary,
You can install rcconfig or use telinit to lower the runlevel one level from current (GUI I think is 3) to 2 will achieve what you want.
Confirm runlevel befor setting the new run level....


@David Favor
the command result

ii  apt                                        1.5                                         amd64        commandline package manager
ii  file-roller                                3.26.1-0ubuntu1                             amd64        archive manager for GNOME
ii  gir1.2-networkmanager-1.0:amd64            1.8.4-1ubuntu3                              amd64        GObject introspection data for the libnm-glib/libnm-util library
ii  gnome-power-manager                        3.25.90-1                                   amd64        power management tool for the GNOME desktop
ii  libmutter-1-0:amd64                        3.26.1-2ubuntu2                             amd64        window manager library from the Mutter window manager
ii  libnewt0.52:amd64                          0.52.18-3ubuntu3                            amd64        Not Erik's Windowing Toolkit - text mode windowing with slang
ii  libpam-systemd:amd64                       234-2ubuntu12.1                             amd64        system and service manager - PAM module
ii  libproxy1-plugin-networkmanager:amd64      0.4.14-3                                    amd64        automatic proxy configuration management library (Network Manager plugin)
ii  modemmanager                               1.6.8-1                                     amd64        D-Bus service for managing modems
ii  mutter                                     3.26.1-2ubuntu2                             amd64        lightweight GTK+ window manager
ii  mutter-common                              3.26.1-2ubuntu2                             all          shared files for the Mutter window manager
ii  nautilus                                   1:3.26.0-0ubuntu1                           amd64        file manager and graphical shell for GNOME
ii  network-manager                            1.8.4-1ubuntu3                              amd64        network management framework (daemon and userspace tools)
ii  network-manager-config-connectivity-ubuntu 1.8.4-1ubuntu3                              all          NetworkManager configuration to enable connectivity checking
ii  network-manager-gnome                      1.8.4-1ubuntu1                              amd64        network management framework (GNOME frontend)
ii  network-manager-pptp                       1.2.4-4                                     amd64        network management framework (PPTP plugin core)
ii  network-manager-pptp-gnome                 1.2.4-4                                     amd64        network management framework (PPTP plugin GNOME GUI)
ii  python3-update-manager                     1:17.10.11                                  all          python 3.x module for update-manager
ii  systemd                                    234-2ubuntu12.1                             amd64        system and service manager
ii  systemd-sysv                               234-2ubuntu12.1                             amd64        system and service manager - SysV links
ii  tk                                         8.6.0+9                                     amd64        Toolkit for Tcl and X11 (default version) - windowing shell
ii  tk8.6                                      8.6.7-1ubuntu1                              amd64        Tk toolkit for Tcl and X11 v8.6 - windowing shell
ii  update-manager                             1:17.10.11                                  all          GNOME application that manages apt updates
ii  update-manager-core                        1:17.10.11                                  all          manage release upgrades
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

systemctl list-unit-files | grep enabled might provide a better clue of what's actually enabled on your system.


thanks all nothing help
Distinguished Expert 2017

What happened when sudo telinit 2
try this combination key
disable GUI CTRL+ALT+F3
enable GUI CTRL+ALT+F1
systemctl set-default multi-user.target

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial