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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.