Results 1 to 5 of 5

Thread: Autologin with no *DM.

  1. #1
    Join Date
    May 2005
    Beans
    150

    Autologin with no *DM.

    Hey, I'm running Openbox and trying to cut down on my startup time by removing GDM to shave off a few seconds. I know GDM can be set up to automatically log in, but it takes time and memory to do so. I've played around with other *DM programs, including XDM and SLIM, but they don't do auto-login.

    I'd really like to dispense with all that entirely and just have the desktop come up. I know how to do this in Debian (with inittab) but Ubuntu uses upstart rather than sysvinit, so I'm a little lost. Anyone know how?
    double free or corruption (fasttop)

  2. #2
    Join Date
    May 2005
    Beans
    150

    Re: Autologin with no *DM.

    Nevermind, I got it.

    If anyone else needs to know:

    0) remove gdm, kdm, xdm, slim, or whatever it is that you have.

    1) create a script to act as a replacement for /bin/login
    Code:
    #!/bin/bash
    /bin/login -f username
    2) make that script executable and put it in /usr/local/bin or something

    3) edit the last line in /etc/event.d/tty1 to use it as an alternate login:
    Code:
    exec /sbin/getty -n -l /usr/local/bin/autologin 38400 tty1
    4) add the line "startx" to your .bash_profile file
    double free or corruption (fasttop)

  3. #3
    Join Date
    Apr 2005
    Beans
    78

    Re: Autologin with no *DM.

    See http://www.mythtv.org/wiki/index.php...ron_.288.04.29 which talks about MythTV but can be used ok for other purposes, just by changing the username to autologin as.

  4. #4
    Join Date
    May 2005
    Beans
    150

    Re: Autologin with no *DM.

    Ack, I've just discovered a problem. This method starts up my window manager without a login just fine, but it screws up PolicyKit (or ConsoleKit, not entirely clear on the details) by listing my session as "inactive", which disables suspend, shutdown, and a whole bunch of other stuff.

    Anyone know how to fix PolicyKit for this?
    double free or corruption (fasttop)

  5. #5
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Autologin with no *DM.

    probably that log in script, may be try:

    sudo apt-get install rungetty

    exec /sbin/getty -n -l /usr/local/bin/autologin 38400 tty1
    to
    exec /sbin/rungetty tty1 --autologin username

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
  •