Brian writes: > On Fri 09 Oct 2015 at 17:18:28 -0400, James Richardson wrote: > >> Brian writes: >> >> > On Fri 09 Oct 2015 at 15:58:55 -0400, James Richardson wrote: >> > >> >> Brian writes: >> >> >> >> > On Fri 09 Oct 2015 at 13:50:07 -0400, James Richardson wrote: >> >> > >> >> >> >> >> >> Richard Owlett writes: >> >> >> >> >> >> > [resend, had not appeared in archives after 2 hours] >> >> >> > >> >> >> > How to do an autologin? In a DE independent way? >> >> >> > >> >> >> > http://manpages.debian.org/cgi-bin/man.cgi?query=autologin&apropos=1 >> >> >> > gave no relevant links. >> >> >> > >> >> >> > A Google search gave only decade old or DE related links. >> >> >> > >> >> >> > I currently use Mate, but exploring other desktops(avoiding Gnome >> >> >> > 3!!!;}. >> >> >> > I'd like something similar to autoexec.bat from DOS/CPM days. >> >> >> >> >> >> I've used runit for such things successfully, most recently for >> >> >> starting >> >> >> kodi at startup on my HTPC. >> >> > >> >> > apt-cache show runit has as part of its output: >> >> > >> >> > runit service supervision can run under sysv init or replace the init >> >> > system completely. Complete init replacement requires some manual >> >> > configuration described in the supplied documentation. >> >> > >> >> > So the standard systemd init system needs replacing to get autologin in >> >> > a DE independent way? Technically you might be correct but are you >> >> > serious? It doesn't seem very elegant. >> >> >> >> runit provides service supervision it can run under sysv init *OR* >> >> replace the init system. >> > >> > Yes. You've repeated what I quoted from 'apt-cache show' without adding >> > why changing one's init system to get a simple thing like autologin is >> > at all beneficial to most users. >> > >> Runit does not require one change one's init system. That is why is >> states it can run under sysv init ****OR**** replace the init system. >> >> Simply installing runit does not replace the init system. > > Correct. So how does simply installing it allow an autologin to X? > > As a matter of interest. From runit(8): > > DESCRIPTION > runit must be run as Unix process no 1. > > root@jessie:~# runit > - runit: fatal: must be run as process no 1.
Well, one has to configure it. In /etc/inittab add a line like SV:123456:respawn:/usr/sbin/runsvdir-start then create a run script for firefox (.e.g /etc/sv/firefox/run) #!/bin/sh exec /usr/bin/xinit /usr/bin/firefox then create a symlink fro /etc/sv/firefox to /etc/service more info is at http://smarden.org/runit/. -- James Richardson http://jamestechnotes.com