Results 1 to 10 of 10

Thread: Disable X11/Xorg

  1. #1
    Join Date
    Jun 2010
    Location
    Sacramento, CA
    Beans
    196
    Distro
    Xubuntu 11.04 Natty Narwhal

    Disable X11/Xorg

    In Ubuntu 10.04 (Lucid) how do I go about disabling X11 or Xorg or whatever, from starting automatically? I like the way BackTrack starts how you have to log in first, and then type "startx".

  2. #2
    Join Date
    Apr 2010
    Location
    Switzerland
    Beans
    307
    Distro
    Ubuntu

    Re: Disable X11/Xorg

    You need to edit /etc/init/gdm.conf, specifically the "start on" section, so it won't start automatically. I suggest you make a backup copy of the file first, in case you mess something up. After you made your changes, apply the configuration by running
    Code:
    sudo initctl reload-configuration
    If you want to start Gnome after your system booted, run
    Code:
    sudo service gdm start

  3. #3
    Join Date
    Jun 2010
    Location
    Sacramento, CA
    Beans
    196
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Disable X11/Xorg

    Do I just change
    Code:
    start on
    to
    Code:
    start off
    ? Or what do you mean by editing? Or leave as
    Code:
    start on
    and then edit what's in the parenthesis?

    Edit: Nevermind, I just changed
    Code:
    on
    to
    Code:
    off
    . And this starts me in tty1 this way.
    Last edited by GrantStoner; September 12th, 2010 at 08:28 PM.

  4. #4
    Join Date
    Jun 2010
    Location
    Sacramento, CA
    Beans
    196
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Disable X11/Xorg

    1) When I start in tty1, however, it doesn't seem to load everything it normally does? When I log in and then type
    Code:
    startx
    it starts gnome, but then tells me keyrings and whatnot weren't started when I logged in. So I have to authenticate them individually?

    2) Also, disabling gdm from starting automatically puts me in tty1, but doesn't let me see my system as it's loading. I'm looking more for like verbose-startup I suppose? I change my hardware quite frequently and I like to see the different adapters and whatnot as they're starting so I know everything is loading the way it should.

  5. #5
    Join Date
    Apr 2010
    Location
    Switzerland
    Beans
    307
    Distro
    Ubuntu

    Re: Disable X11/Xorg

    You need to change the grub configuration if you want to see startup messages. Edit /etc/default/grub and remove the "quiet" boot option. Then run
    Code:
    sudo update-grub
    to apply the changes.

    Quote Originally Posted by GrantStoner View Post
    When I start in tty1, however, it doesn't seem to load everything it normally does? When I log in and then type
    Code:
    startx
    it starts gnome, but <...>
    I said, use
    Code:
    sudo service gdm start
    .

  6. #6
    Join Date
    Jun 2010
    Location
    Sacramento, CA
    Beans
    196
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Disable X11/Xorg

    Quote Originally Posted by clrg View Post
    You need to change the grub configuration if you want to see startup messages. Edit /etc/default/grub and remove the "quiet" boot option. Then run
    Code:
    sudo update-grub
    to apply the changes.
    Thanks this worked exactly the way I wanted. I just put the "##" right in front of that option instead of editing/deleting the option.



    Quote Originally Posted by clrg View Post
    I said, use
    Code:
    sudo service gdm start
    .
    When I do this, all I get is
    Code:
    start: Unknown job: gdm
    This is why I do
    Code:
    startx
    instead, and It works flawlessly, EXCEPT for the message that pops up and "Unlock Login Keyring" and says my keyring wasn't unlocked when I logged in.

  7. #7
    Join Date
    Nov 2007
    Beans
    204

    Re: Disable X11/Xorg

    If you are going to use startx command. You need to create a .xinitrc file in your home directory and have this in the file.


    Code:
    #!/bin/sh
    #
    # ~/.xinitrc
    #
    # Executed by startx (run your window manager from here)
    #
    # exec ion
    # exec jwm
    # exec wmaker
    # exec startkde
    # exec icewm
    # exec blackbox
    exec gnome-session
    # exec startfluxbox
    # exec startxfce4
    # exec xfce4-session
    # exec openbox
    # exec startlxde

  8. #8
    Join Date
    Jun 2010
    Location
    Sacramento, CA
    Beans
    196
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Disable X11/Xorg

    If I have the libraries installed for the other environments, do I just put the "#" back in front of
    Code:
    exec gnome-session
    and erase the "#" from which ever I want to enable?

  9. #9
    Join Date
    Nov 2007
    Beans
    204

    Re: Disable X11/Xorg

    Quote Originally Posted by GrantStoner View Post
    If I have the libraries installed for the other environments, do I just put the "#" back in front of
    Code:
    exec gnome-session
    and erase the "#" from which ever I want to enable?
    Yup

  10. #10
    Join Date
    Jun 2010
    Location
    Sacramento, CA
    Beans
    196
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Disable X11/Xorg

    Thanks, I'm still getting the "Unlock Login Keyring" error though. I have everything in the "Startup Applications" checked. I thought maybe I didn't have one of the daemons set to start, but nope, they're all selected. Would I get this message if I'm really using KDE but have the gnome daemons on? How would I tell what environment I'm using? It looks like gnome, but it looks like KDE as well... like a KDE theme for gnome, or possibly a gnome theme for KDE.

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
  •