Hi all! First, I appreciate very much freebsd that I use since nearly one year for scientific computation (simulation etc), writing C - sometimes threaded - programs, on mono and multi-core/CPU stations. I would like to autologin in *only one* ttyv (eg ttyv1) and then launch X with xinit manually or with a script. I used ":al=<me>:" in /etc/gettytab and added or not xinit in /etc/<login file>, but it's not very satisfying! Hence, I would like this to occur only for ttyv1. Can someone help me? Regards, MP
Mathieu PREVOT wrote:> I would like to autologin in *only one* ttyv (eg ttyv1) and then launch > X with xinit manually or with a script.Have a look at /etc/gettytab. Instead of starting getty, you could simply start a shell, like this: ttyv1 "/usr/bin/su - username" cons25 on secure If you want to start X right away, you could try ttyv1 "/usr/bin/su - username startx" cons25 on secure Cheers Benjamin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 186 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050902/145c3ea4/signature.bin
On Thu, Sep 01, 2005 at 09:59:20PM +0200, Mathieu PREVOT wrote:> > I would like to autologin in *only one* ttyv (eg ttyv1) and then launch > X with xinit manually or with a script. > I used ":al=<me>:" in /etc/gettytab and added or not xinit in > /etc/<login file>, but it's not very satisfying! > Hence, I would like this to occur only for ttyv1. Can someone help me?I have done a similar thing for ThinBSD. Look here: http://www.thinbsd.org/cvsweb/ThinBSD/diskimage/files/ In addition to gettytab, I had to modify /etc/ttys to use the autologin feature on only one vt. You can then launch X from the user's .profile -- Francois Tigeot, Zefyris http://www.zefyris.com/
Benjamin Lutz wrote:> Mathieu PREVOT wrote: > >>I would like to autologin in *only one* ttyv (eg ttyv1) and then launch >>X with xinit manually or with a script. > > > Have a look at /etc/gettytab. Instead of starting getty, you could > simply start a shell, like this: > > ttyv1 "/usr/bin/su - username" cons25 on secure > > If you want to start X right away, you could try > > ttyv1 "/usr/bin/su - username startx" cons25 on secureErr obviously it was too late for me to think straight yesterday night... this is /etc/ttys of course, not /etc/gettytab. Cheers Benjamin -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 186 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050902/65c40290/signature.bin