Disable ubuntu desktop 17.10 GUI and startup with command only

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
MASWORLDAsked:
Who is Participating?
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
0
 
arnoldCommented:
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....
0
 
MASWORLDAuthor Commented:
@David Favor
thanks
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
0
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

 
serialbandCommented:
systemctl list-unit-files | grep enabled might provide a better clue of what's actually enabled on your system.
0
 
MASWORLDAuthor Commented:
thanks all nothing help
0
 
arnoldCommented:
What happened when sudo telinit 2
0
 
Ikhwan HafidhiCommented:
try this combination key
disable GUI CTRL+ALT+F3
enable GUI CTRL+ALT+F1
0
 
serialbandCommented:
systemctl set-default multi-user.target
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.