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

Re: Autologin to X session (Debian 8)?



Le decadi 20 prairial, an CCXXIII, Teemu Likonen a écrit :
> One option is /etc/rc.local:
> 
>     /bin/su -l USER -c /usr/bin/startx </dev/tty8 >/dev/tty8 2>&1 &
>     exit 0

Rule of thumb: if you are using rc.local, then you are doing something
quick-and-dirty and preparing no end of problems for later.

In this particular instance, you are not registering the X11 session with
the various session-management daemons responsible for granting various
permissions on devices and such. Therefore, you will notice eventually that
some things do not work: maybe raw access to removable devices for example;
or controlling the wifi. YMMV, but something useful WILL not work.

People have to realize that Linux environments have become more complex to
react to more complex user expectations and use cases (you can hardcode the
mount point for a floppy drive; how do you hardcode the mount point for
three USB sticks and one eSATA drive?), thus breaking the manual hacks
advances users were used to.

Regards,

-- 
  Nicolas George


Reply to: