Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 20:05:32 +0700
From:      "Arifin" <arifin@xfilesfan.com>
To:        "Robert Sowders" <rsowders@usgs.gov>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Start X-Window from User Login.
Message-ID:  <001601be8c05$9f592fe0$b40294ca@arena>

next in thread | raw e-mail | index | archive | help
Hi Robert,
I'm using bash.
i'm edit .profile file, add "/usr/X11R6/bin" to path and that's work fine

Thanks to all,
-arifin
-----Original Message-----
From: Robert Sowders <rsowders@usgs.gov>
To: bright@rush.net <bright@rush.net>; arifin@xfilesfan.com <arifin@xfilesfan.com>
Cc: freebsd-questions@FreeBSD.ORG <freebsd-questions@FreeBSD.ORG>
Date: Wednesday, April 21, 1999 10:56 AM
Subject: Re: Start X-Window from User Login.


find out what your shell is type ps and the first line will display your shell type.
If you are logging in via csh, edit your .login file in your home directory to include the path in
your path statement there.  You might also look at your .cshrc as sometimes paths are also set
there.
If you are logging in via ksh or sh, edit your .profile in your home directory to include the path.
Log out and back in or source your .cshrc  or whatever to get a new shell then type echo $path, and
look to see if your new path is there.
Here is an example from my .login
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/bin /usr/X11R6/bin
You can also type env to see all your environment variable.

>>> "Arifin" <arifin@xfilesfan.com> 4/20/99 6:36:19 AM >>>
Hi Alfred,
I use FreeBSD 226,
when i edit login.conf a line "path" on default section not exist,
but in standard section have a line "path". so i add /usr/X11R6/bin
on standard section.

And then save it, cap_mkdb /etc/login.conf

But i type /usr/X11R6/bin/startx still appear "xinit: not found",

I use FreeBSD at home, i'm a newbies, just single PC, i use FreeBSD
for study Unix Like O/S...

Please give me a suggestion, where i do mistake config?

I install FreeBSD < 2 weeks ago, and create 2 user without group.
i type a ls -l xinit in "/usr/X11R6/bin" appear:
-rwxr-xr-x 1 root wheel 16384 Mar 1 1998 xinit
what possible problem is a user control list setting?

TIA,
-arifin

ps: sorry for poor english.
-----Original Message-----
From: Alfred Perlstein <bright@rush.net>
To: Arifin <arifin@xfilesfan.com>
Cc: freebsd-questions <freebsd-questions@FreeBSD.ORG>
Date: Monday, April 19, 1999 1:25 AM
Subject: Re: Start X-Window from User Login.


>On Sun, 18 Apr 1999, Arifin wrote:
>
>> Hi all..
>>
>> How to run window manager from all user.
>> I type /usr/X11R6/bin/startx from user login, appear error message:
>> "xinit: not found", but in root login no problem?.
>
>You don't have /usrX11R6/bin in your path, try editing
>/etc/login.conf and adding "/usr/X11R6/bin" to the line
>with the word "path" at the front:
>
>default:\
>    :copyright=/etc/COPYRIGHT:\
>    :welcome=/etc/motd:\
>    :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,EDITOR=/usr/bin/ee:\
>    :path=~/bin /bin /usr/bin /usr/local/bin /usr/X11R6/bin:\
>    :manpath=/usr/share/man /usr/local/man:\
>
>                                                   ^
>here ----------------------------------------------/
>
>then run:
>
>cap_mkdb /etc/login.conf
>
>to rebuild the login.conf database.
>
>-Alfred





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001601be8c05$9f592fe0$b40294ca>