From owner-freebsd-questions@FreeBSD.ORG Sun Sep 25 15:56:17 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A45F106564A for ; Sun, 25 Sep 2011 15:56:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id AA51F8FC15 for ; Sun, 25 Sep 2011 15:56:16 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p8PFuC4w042460 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 25 Sep 2011 16:56:12 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p8PFuC4w042460 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1316966172; bh=uuTKmMFJJH48mxvZwkxdCrZhidpBdr2baC/PEO/3+us=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E7F4F14.7000408@infracaninophile.co.uk>|Date:=20S un,=2025=20Sep=202011=2016:56:04=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:6.0.2)=20Gecko/2 0110902=20Thunderbird/6.0.2|MIME-Version:=201.0|To:=20freebsd-ques tions@freebsd.org|Subject:=20Re:=20autologin=20on=20default=20shel l=20/bin/sh|References:=20|In-Reply-To:=20|X-Enigmail-Version: =201.3.1|OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart/signed =3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-sig nature"=3B=0D=0A=20boundary=3D"------------enig8922E0E4DE1901F91BE 3A03D"; b=BEI9YFJ3jYO3u1bxLPpjG5zBkzQEiHBPZIun1Ry+tTgSDCvQkN8wnqOXoGZOdAbmj Vko7yQdPK6zXFHm/q3mZwJCOiPhrRg2PnYc5Y8dljGCx/593tEejLtWh2w2pRmT03F dU8Itx924nCpx/RsW9EAFU9NkHOvSpIWGnVwrUas= Message-ID: <4E7F4F14.7000408@infracaninophile.co.uk> Date: Sun, 25 Sep 2011 16:56:04 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.3.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8922E0E4DE1901F91BE3A03D" X-Virus-Scanned: clamav-milter 0.97.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: autologin on default shell /bin/sh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2011 15:56:17 -0000 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--