Results 1 to 4 of 4

Thread: Remove or prevent gdm from starting.

  1. #1
    Join Date
    Aug 2007
    Beans
    61

    Remove or prevent gdm from starting.

    I just upgraded to pangolin. I originally installed xubuntu on a small netbook, but I now only use it as an ssh server for a variety of things. Because I never use the desktop environment, I would like to either remove it, or prevent it from starting. I suppose I better keep something lightweignt like blackbox just in case, but as of now I'm manually stopping gdm every reboot, which is getting old.

    In summary: how do I get rid of the xubuntu desktop (I think it's xfce)and replace it with something more lightweight? And how do I prevent the desktop environment from running on boot?

  2. #2
    Join Date
    Mar 2005
    Beans
    88

    Re: Remove or prevent gdm from starting.

    Hi Nick,

    The most debian way would be deinstall gdm, if you don't need it:
    $ sudo apt-get --purge remove gdm

    Niko

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Remove or prevent gdm from starting.

    Are you sure it is gdm that you are using in Xubuntu 12.04? The default now is lightdm, but if you updated you may still have gdm. Either way you can edit the /etc/init/lightdm.conf (or gdm.conf) and comment out the section shown in red below.
    Code:
    # LightDM - light Display Manager
    #
    # The display manager service manages the X servers running on the
    # system, providing login and auto-login services
    #
    # based on gdm upstart script
    
    description    "LightDM Display Manager"
    author        "Robert Ancell <robert.ancell@canonical.com>"
    
    # start on ((filesystem
    #           and runlevel [!06]
    #           and started dbus
    #           and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
    #                or stopped udev-fallback-graphics))
    #         or runlevel PREVLEVEL=S)
    There is a similar section in the gdn.conf file which you can comment out, if gdm is what you are using.

  4. #4
    Join Date
    Aug 2007
    Beans
    61

    Re: Remove or prevent gdm from starting.

    I did just notice that gdm has been replaced by lightdm. That conf is exactly what I needed. It is better I think to simply keep lightdm from starting, rather than take the rather extreme step of removing it. This way I can manually start it if I need to. Thank you all for your help.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •