From owner-freebsd-questions@FreeBSD.ORG Sun Aug 8 14:12:53 2010 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 A266F1065679 for ; Sun, 8 Aug 2010 14:12:53 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 32EAF8FC1B for ; Sun, 8 Aug 2010 14:12:52 +0000 (UTC) Received: by wwb13 with SMTP id 13so80794wwb.31 for ; Sun, 08 Aug 2010 07:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=sQ6Y0YAtRptFCd4yt8PRuHJVxtfsVVPRdLhPGKkA2TA=; b=Zxv8tFGO2aa9U/X+fG1D1MpEzPx4jvGmv6adk7sN2q88QNbQ8yW/qBKVwfKLjE0qPS W4PB3iX5e9qotGHLwdHQ2MmgncPKEqK2aorcbopDivlSTa5dKNZkMQgUOVu0RWccILvV w3TuWGipcZn7OzvVd7kvAYwKZrFshb3KpDeSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=I6ywJM5YcUoEsOZfzxkawCqu/KwErbmwpjhkn1wn9B+2pN78tLi5z+PAXsgnH/MkDU SEL1XSkoiLZQNYl1B2iRL1f56Ae0j8kj4BPaCSoKNxSLBbb/OImCDFTA0NY46zrV1gsm ShQEp/UP2s2XeRYAJowGod6mxZeJl0Y8w49nE= MIME-Version: 1.0 Received: by 10.227.129.130 with SMTP id o2mr12716372wbs.116.1281276771730; Sun, 08 Aug 2010 07:12:51 -0700 (PDT) Received: by 10.216.69.70 with HTTP; Sun, 8 Aug 2010 07:12:51 -0700 (PDT) In-Reply-To: <20100808120816.b6b1f54a.freebsd@edvax.de> References: <4C566252.6010605@otenet.gr> <4C5CFEE0.5060000@speakeasy.net> <201008071157.00180.eliaschr@cha.forthnet.gr> <20100807214737.75ebc397.freebsd@edvax.de> <20100808120816.b6b1f54a.freebsd@edvax.de> Date: Sun, 8 Aug 2010 09:12:51 -0500 Message-ID: From: Antonio Olivares To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: ANNOUNCE: Custom 64bit FreeBSD 8.1-RELEASE with XFCE packages released 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, 08 Aug 2010 14:12:53 -0000 On 8/8/10, Polytropon wrote: > On Sat, 7 Aug 2010 19:33:58 -0500, Antonio Olivares > 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 & et all, I apologize, but the change to put the code: [! -f /tmp/.X0-lock ] && startx my home directory /home/olivares/.login apparently does not work, why I see pam errors: Aug 8 08:07:32 myhostname login: pam_authenticate(): conversation failure .... login: in_prompt_echo_off(): tcgetattr(): Device not configured error repeats itself. I want to use your solution, since the one with rc.local, the mouse takes a while to respond :( Thanks for helping me fix this. Regards, Antonio