Page 5 of 10

Re: GhostBSD-11 testing the "test" repository

Posted: Tue May 30, 2017 12:41 pm
by NevilleGoddard
I think I may have fixed the PATH problem in lightdm. 8-)

Logging in with lightdm the network icon is normal now and ifconfig now returns normal output. :D

The way I fixed it was to copy some lines from the .profile file in the "file system" section I think it's called HOME/.profile.

My .profile has this:

# $FreeBSD: releng/11.0/etc/root/dot.profile 278616 2015-02-12 05:35:00Z cperciva $
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
export PATH
HOME=/root
export HOME
TERM=${TERM:-xterm}
export TERM
PAGER=more
export PAGER

I copied these lines:

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
export PATH

into the .xprofile file in my home folder

my .xprofile now looks like this:

#!/bin/sh
setxkbmap -layout jp -variant OADG109A
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
export PATH

the command echo $PATH under fish and lightdm now returns:

/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /home/neville/bin

I hope this is a fix. I haven't found any adverse effects from this change.

Re: GhostBSD-11 testing the "test" repository

Posted: Tue May 30, 2017 3:33 pm
by ASX
/etc/profile and $HOME&.profile are initialization files evaluated from /bin/sh
other shell may use different files, i.e. bash use $HOME/.bashrc

I understand that your changes are working with your setup, but I'm not sure it is the proper fix.

To which package belong $HOME/.xprofile ?
(that's copied for each new user, probably from /etc/skel/ or /usr/local/etc/skel/ ....).

Eric told me that the PATH problem existed for fish only, and not for /bin/sh, your report seems to correlate it to lightdm, independently from the shell used ... something doesn't add up.

Re: GhostBSD-11 testing the "test" repository

Posted: Tue May 30, 2017 3:34 pm
by ASX
btw, the updated i386 repo now is online too. ;)

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 1:09 am
by NevilleGoddard
Just as I thought.

Not a fix but a hack.

But it works. :)

I think the xprofile file is a lightdm file.

At least lightdm uses it, according to Arch wiki

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 9:09 am
by NevilleGoddard
I think I'll do a FreeBSD install without fish and use lightdm and see what happens.

But it looks to me that fish is not the problem but lightdm.

I'll see if this "fix" works if there is a path problem.

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 10:36 am
by NevilleGoddard
I did an install of FreeBSD11 with no fish and lightdm

echo $PATH returns:

/usr/local/bin:/usr/bin:/bin

I'll try now with slim enabled

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 10:52 am
by NevilleGoddard
With SLiM and no fish same machine

echo $PATH returns:

/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin

It looks to me like lightdm configuration somewhere is the problem. Not fish.

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 11:25 am
by ASX
NevilleGoddard wrote:I did an install of FreeBSD11 with no fish and lightdm

echo $PATH returns:

/usr/local/bin:/usr/bin:/bin

I'll try now with slim enabled
I see you are havinng fun! :mrgreen:

Please stop here, your output doesn't look correct!

The PATH here should already include /sbin and /usr/sbin ... as defined in /etc/login.conf

Code: Select all

default:\
        :passwd_format=sha512:\
        :copyright=/etc/COPYRIGHT:\
        :welcome=/etc/motd:\
        :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
        :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
        :nologin=/var/run/nologin:\
   ....

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 11:44 am
by NevilleGoddard
Yes, I am. :D

This is my login.conf :

default:\
:passwd_format=sha512:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\

this is echo $PATH with SLiM:

/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin

Hang on while I reboot and enable lightdm :mrgreen:

Re: GhostBSD-11 testing the "test" repository

Posted: Wed May 31, 2017 11:49 am
by NevilleGoddard
This is echo $PATH under lightdm

:/usr/local/bin:/usr/bin:/bin

I don't know what to make of it.