Date: Mon, 26 Sep 2011 16:37:55 -0500 From: Antonio Olivares <olivares14031@gmail.com> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org Subject: Re: autologin on default shell /bin/sh Message-ID: <CAJ5UdcPctQwUSVxDC7h4wwMX1hCzR40Qw-vrdXSSu_K6pSEWSA@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.1109260944370.67964@wonkity.com> References: <CAJ5UdcN7px94fjidvTkdB53Kc7KNO9939kpk%2BAmUohqc_7m%2BMA@mail.gmail.com> <4E7F4F14.7000408@infracaninophile.co.uk> <CAJ5UdcMbWFgDPSJbP-_eR%2BoUL6wy7F2CK5sCCHSvDFP2XbiCSA@mail.gmail.com> <alpine.BSF.2.00.1109260944370.67964@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 26, 2011 at 10:53 AM, Warren Block <wblock@wonkity.com> wrote: > On Mon, 26 Sep 2011, Antonio Olivares wrote: > >> If I type my username and login, startx starts automatically, but after = I >> have logged in by typing my username and password. > > That means the part that starts X is correct. > >> This is an excerpt of /etc/ttys on FreeBSD 9.0 BETA 2 >> >> ttyv0 =A0 "/usr/libexec/getty Pc" =A0 =A0 =A0 =A0 xterm =A0 on =A0secure >> # Virtual terminals >> ttyv1 =A0 "/usr/libexec/getty Pc" =A0 =A0 =A0 =A0 xterm =A0 on =A0secure > > Don't use xterm, it won't be able to run before X has started. > > "Pc" is the standard login. =A0The new entry in /etc/gettytab creates a n= ew > "Al" for autologin: > > A|Al|Autologin console:\ > =A0 =A0 =A0 =A0:ht:np:sp#115200:al=3Duser > > The "A", "Al", and "Autologin console" are all names for that entry. > > When the system starts, it will start the ttys listed in /etc/ttys: > > ttyv0 =A0 "/usr/libexec/getty Pc" =A0 =A0 =A0 =A0 cons25 =A0on =A0secure > ttyv1 =A0 "/usr/libexec/getty Al" =A0 =A0 =A0 =A0 cons25 =A0on =A0secure > > I leave ttyv0 alone for log messages and such, and put the autologin on > ttyv1. > > An autologin system probably won't need the rest of the ttyv entries and > they can be commented out. > I have done as you have instructed. Set up /etc/ttyv with ttyv1 "/usr/libexec/getty Al" cons25 on secure and in /etc/gettytab A|Al|Autologin console:\ :ht:np:sp#115200:al=3Dolivares as my username is olivares. It is working on BETA 2 :) Now I hope to get it working again at home on an 8.2 amd machine. I will report back but return different machine and different information, hope only with a success report :) It was working before, and now it is not :( Regards, Antonio
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcPctQwUSVxDC7h4wwMX1hCzR40Qw-vrdXSSu_K6pSEWSA>