GhostBSD-11 testing the "test" repository

Open development discussions

Moderator: Developer

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Tue May 30, 2017 11:41 am

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.
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository


Re: GhostBSD-11 testing the "test" repository

Postby ASX » Tue May 30, 2017 2:33 pm

/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.
ASX
Developer
 
Posts: 971
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: GhostBSD-11 testing the "test" repository

Postby ASX » Tue May 30, 2017 2:34 pm

btw, the updated i386 repo now is online too. ;)
ASX
Developer
 
Posts: 971
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Wed May 31, 2017 12:09 am

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
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Wed May 31, 2017 8:09 am

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.
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Wed May 31, 2017 9:36 am

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
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Wed May 31, 2017 9:52 am

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.
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository

Postby ASX » Wed May 31, 2017 10:25 am

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:\
   ....
ASX
Developer
 
Posts: 971
Joined: Wed May 06, 2015 11:46 am
Has thanked: 58 times
Been thanked: 130 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Wed May 31, 2017 10:44 am

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:
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

Re: GhostBSD-11 testing the "test" repository

Postby NevilleGoddard » Wed May 31, 2017 10:49 am

This is echo $PATH under lightdm

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

I don't know what to make of it.
NevilleGoddard
Developer
 
Posts: 339
Joined: Thu Dec 22, 2016 10:30 pm
Has thanked: 74 times
Been thanked: 43 times

PreviousNext

Return to Development Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron