Date: Sun, 8 Aug 2010 17:44:36 +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: <20100808174436.2fa1ea02.freebsd@edvax.de> In-Reply-To: <AANLkTi=XmHj0BUfk5M9Jpwz=DJEf3=t6WQv_Z=zo%2B0Pn@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> <20100808120816.b6b1f54a.freebsd@edvax.de> <AANLkTikkog54DgykfkFer4NqQJeVTwd4teOYqu8EB=Gc@mail.gmail.com> <20100808164133.2abae500.freebsd@edvax.de> <AANLkTik5h-KHhtBbNpc=4QNSNvPE5winmTFQqNUL_FNr@mail.gmail.com> <20100808172336.6c4f39a3.freebsd@edvax.de> <AANLkTi=XmHj0BUfk5M9Jpwz=DJEf3=t6WQv_Z=zo%2B0Pn@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Aug 2010 10:33:30 -0500, Antonio Olivares <olivares14031@gmail.com> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100808174436.2fa1ea02.freebsd>