Date: Sun, 8 Aug 2010 12:08:16 +0200 From: Polytropon <freebsd@edvax.de> To: Antonio Olivares <olivares14031@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released Message-ID: <20100808120816.b6b1f54a.freebsd@edvax.de> In-Reply-To: <AANLkTimFJkB0vaV0jwcVVuaeWG2Zq_UQ6shd%2B=O%2B3B28@mail.gmail.com> References: <4C566252.6010605@otenet.gr> <4C5CFEE0.5060000@speakeasy.net> <AANLkTin1vfjfM98gmc2P5a-hZ78q_PDChyFTbGqTbJA_@mail.gmail.com> <201008071157.00180.eliaschr@cha.forthnet.gr> <AANLkTi=YoER4nBaq2noap_pFbhcLD8BLYbRxzBpcK5JP@mail.gmail.com> <20100807214737.75ebc397.freebsd@edvax.de> <AANLkTimFJkB0vaV0jwcVVuaeWG2Zq_UQ6shd%2B=O%2B3B28@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 7 Aug 2010 19:33:58 -0500, Antonio Olivares <olivares14031@gmail.com> wrote: > Polytropon, > > So if I delete the file /etc/rc.local and make a file ~/.login, make > it executable (chmod +x ~/.login), and add the line > > > [ -f /tmp/.X0-lock ] && startx > in that file and I will have the same result but without loggin in as > root? Correct. The user specified by the autologin directive will be the user who runs the "startx" command, so no need for using "su". Here's an example from a working FreeBSD 5 system: /etc/ttys: ttyv0 "/usr/libexec/getty autologin" cons25l1 on secure Intead of "Pc", the profile to be used is named "autologin". /etc/gettytab: autologin:\ :al=praxis:tc=Pc: The name "praxis" is the user's account name for the user to be logged in automatically. All capabilities defined in "Pc" will also be incorporated. /home/praxis/.login: mesg y [ ! -f /tmp/.X0-lock ] && startx This makes sure the same username can be used for an SSH login (and it WON'T try to start another X then), or it can be used to log in via text mode console. When X is shut down, the user will be dropped to the text mode CLI. If you don't want to do that, add "logout" as the next line in ~/.login, or enclose the whole "startx" line in a loop. But this can lead to problems when X is not working properly. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100808120816.b6b1f54a.freebsd>