From owner-freebsd-questions@FreeBSD.ORG Sun Aug 8 15:45:06 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 E74361065673 for ; Sun, 8 Aug 2010 15:45:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id A04738FC0C for ; Sun, 8 Aug 2010 15:45:06 +0000 (UTC) Received: from r55.edvax.de (port-92-195-116-86.dynamic.qsc.de [92.195.116.86]) by mx02.qsc.de (Postfix) with ESMTP id 8F5261E77C; Sun, 8 Aug 2010 17:44:37 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o78FiaoI002394; Sun, 8 Aug 2010 17:44:36 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 8 Aug 2010 17:44:36 +0200 From: Polytropon To: Antonio Olivares Message-Id: <20100808174436.2fa1ea02.freebsd@edvax.de> In-Reply-To: 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> <20100808164133.2abae500.freebsd@edvax.de> <20100808172336.6c4f39a3.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2010 15:45:07 -0000 On Sun, 8 Aug 2010 10:33:30 -0500, Antonio Olivares wrote: > This is it I guess. I chose bash shell and the default schell is the csh. > > There is a file called .login in my home directory > /home/olivares/.login which has: > > $ $FreeBSD: src/share/skel/dot.login,v 1.17.2.1.5.1 2010/06/14 > 02:09:06 kensmith > Exp % > # > # .login - csh login script, read by login shell after '.cshrc' at login. > # > # see also csh(1), environ(7), > # > if (-x /usr/games/fortune ) /usr/games/fortune freebsd-tips > if [! -f /tmp/.X0-lock ]; then > /usr/local/bin/startx > fi > > > and it clearly says that is for 'csh login', so I would need something else? Yes. According to "man bash", section "INVOCATION", mentiones other file names: Bash reads and executes ~/.bash_profile, ~/.bash_login, and ~/.profile (in that order), so you can add the line "[ ! -f /tmp/.X0-lock ] && startx" (short form is completely okay and valid) at the end of ~/.bash_login - or also .profile, but it makes more sense in putting it into something related to "login" rather than a "profile", but that's debatable semantics. :-) The line "[ ! -f /tmp/.X0-lock ] && startx" is correct C shell, sh (Bourne) and bash syntax. > I have hostname="grullahighschool" in /etc/rc.conf file Did you add a domain name (.local or .lan are okay)? Something like 127.0.0.1 localhost 127.0.0.1 grullahighschool.local grullahighschool 127.0.0.1 grullahighschool.local. should work if hostname="grullahighschool.local" is given. Don't forget to assign an IP for localhost, too (can be the same). See "man host" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...