autologin on default shell /bin/sh
m.seaman at infracaninophile.co.uk
Sun Sep 25 15:56:17 UTC 2011
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
> I tried to edit ~/.cshrc and copied W Block's example, but it did not work
> 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:
> if [ `/usr/bin/tty` = '/dev/ttyv0' ]; then
> 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
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.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110925/8f8ef757/signature.pgp
More information about the freebsd-questions