Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Sep 2011 16:56:04 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: autologin on default shell /bin/sh
Message-ID:  <4E7F4F14.7000408@infracaninophile.co.uk>
In-Reply-To: <CAJ5UdcN7px94fjidvTkdB53Kc7KNO9939kpk%2BAmUohqc_7m%2BMA@mail.gmail.com>
References:  <CAJ5UdcN7px94fjidvTkdB53Kc7KNO9939kpk%2BAmUohqc_7m%2BMA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8922E0E4DE1901F91BE3A03D
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 25/09/2011 16:16, Antonio Olivares wrote:
> I have a 9.0 BETA 2 amd64 machine and I am using /bin/sh shell or
> default shell when one installs FreeBSD.  I want to be able to setup
> autologin and automatic startx as well like I have on the other
> machines
>=20
> I tried to edit ~/.cshrc and copied W Block's example, but it did not w=
ork
>=20
> https://freebsd-forums.liquidneon.com/showthread.php?t=3D22304
>=20
> How can I get it without using bash?  Do I need to create a
> ~/.csh_login file and add the code to startx?
> I have tried to add to ~/.cshrc the code:
>=20
> if [ `/usr/bin/tty` =3D '/dev/ttyv0' ]; then
>     /usr/local/bin/startx
> fi
>=20
> and it does not work.

If the shell on your auto-login account is /bin/sh, then you should  put
your X startup in .profile -- syntax is identical to the bash example
you showed.

If the shell on your auto-login account is /bin/csh or /bin/tcsh (which
are really exactly the same thing on FreeBSD), then you should put your
X startup in .login In this case the syntax is different, but you can
copy wblock's example from the forum thread you referenced.

Either of those shells should work.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enig8922E0E4DE1901F91BE3A03D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5/TxwACgkQ8Mjk52CukIzsdwCcD8fcpk3Yuba/fe8YLYzOoxXu
VKAAniP92pGsZt3wMqlnh2gOZB6p6aKN
=laao
-----END PGP SIGNATURE-----

--------------enig8922E0E4DE1901F91BE3A03D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E7F4F14.7000408>