[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Autologin to X session (Debian 8)?



Teemu Likonen [2015-06-04 12:26:08+03] wrote:

> When my machine boots it logs in to X session automatically without
> user login and password prompt.

> Upto Debian 7 I have had this line in my [/etc/inittab] file:
>
>     oma:2:once:/bin/su -l dtw -c /usr/bin/startx </dev/tty8 >/dev/tty8 2>&1
>
> It seems that it has no effect anymore in Debian 8 (Jessie), probably
> because of the new init system (systemd). So how do I get similar
> functionality with the new systemd init system?

One option is /etc/rc.local:

    /bin/su -l USER -c /usr/bin/startx </dev/tty8 >/dev/tty8 2>&1 &
    exit 0

Attachment: signature.asc
Description: PGP signature


Reply to: