[gentoo-user] Q: Where does elogind get "--keeptty" set?

2020-10-26 Thread Steven Lembark
After conversion to elogind I cannot start X11. 

I've re-emerged PAM, though the ._cfg_system-auth tried to remove 
elogind.so, oddly enough.

At this point my Xorg.0.log includes:

systemd-elogind: Logind integration requires -keeptty and 
-keeptty was not provided, disabling elogind integration.


Looking for -keeptty I find:



I found 74 packages installed on my system with at least one systemd reference 
in them. Most only install service files. Some make use of systemd-journal. 
Only 10 make use of libsystemd-login, and I have now submitted all of them but 
x11-base/xorg-server.  The latter has to be started with "-keeptty" to add 
systemd-login/elogind integration, and that argument is strictly for debugging.

Q: Any suggestions as to where or how I might avoid this or 
   supply -keeptty?

thanks

-- 
Steven Lembark
Workhorse Computing
lemb...@wrkhors.com
+1 888 359 3508



Re: [gentoo-user] A How-to to keep Python on top of its game?

2020-10-26 Thread Dale
Andrew Lowe wrote:
> Should have gone to the list, went to Dale directly
>
> On 19/10/20 11:20 pm, Dale wrote:
>> Andrew Lowe wrote:
>>> Hi all, I've just run emerge --pretend --depclean and it wants to
>>> remove Python 3.6 - all good. But in turn it is leaving 2.7, 3.7,
>>> 3.8, 3.9.
>
> [snip]
>
>> Given some more time, I think 3.6 may go away at some point in the
>> not so distant future.  There may even be a somewhat firm target date
>> for it.  I think either the date was on -dev or a link to it one.
>>
>> May have to give it more time yet.
>>
>> Dale
>>
>>
>>
>
> Apologies for not replying sooner. I had a sneaking suspicion this
> would be the case. Well, I'll just have to put up with it until "the
> day" when the higher ups get things sorts.
>
>     Thanks,
>     Andrew
>
>


No problem.  My internet was down for several days.  I was unable to
notice the delay.  ;-)  ROFL 

It seems my provider had a problem and in the meantime a field rat,
common in this area, decided to chew on my phone wire.  I wish someone
had tried to "ring" me up and electrocuted the thing.  :-D  I got it
fixed and my provider fixed their issue as well.  I'm surfing again. 

I'm off to war with a field rat.  May be busy a while.  They stubborn
little things. 

Dale

:-)  :-) 



Re: [gentoo-user] X11 fails to start up after elogind emerge

2020-10-26 Thread Steven Lembark
On Fri, 23 Oct 2020 13:48:53 +0200
netfab  wrote:

> Try to reemerge sys-libs/pam and sys-auth/pambase, and update any
> pam-related configuration :
> 
>   https://forums.gentoo.org/viewtopic-t-1116632.html


Checking /etc/pam.d/system-auth:

authrequiredpam_env.so
authrequiredpam_unix.so try_first_pass likeauth nullok
authoptionalpam_permit.so
authrequiredpam_faillock.so preauth
authsufficient  pam_unix.so nullok try_first_pass
auth[default=die]   pam_faillock.so authfail
account requiredpam_unix.so
account optionalpam_permit.so
account requiredpam_faillock.so
passwordrequiredpam_passwdqc.so 
config=/etc/security/passwdqc.conf
passwordrequiredpam_unix.so try_first_pass use_authtok 
nullok sha512 shadow
passwordoptionalpam_permit.so
-sessionoptionalpam_libcap.so
session requiredpam_limits.so
session requiredpam_env.so
session requiredpam_unix.so
session optionalpam_permit.so
-sessionoptionalpam_elogind.so

it is there, I don't think the posisiton (last) is an issue.

dbus & elogind are both running:

$ ps aux | grep dbus
message+  1294  0.0  0.0   3952  2376 ?Ss   09:19   0:00 
/usr/bin/dbus-daemon --system
root  1323  0.0  0.0   3880  3136 ?S09:19   0:00 elogind-daemon

One odd thing: If I log in with ssh in then "loginctl list" shows
my session as:

SESSION UID  USER SEAT TTY
c2  1024 lembark   pts/0

i.e., allocated pts but no "seat". It does not show anything for
the console logins via root or my userid. Running "loginctl list"
as myself or su gets nothing with only console logins. 

The problem may be here:

# loginctl user-status;
Could not get properties: Is a directory.

Q: Anyone know what the path checked for user-status would be?

Looking at the strace output everything opened was ENOENT or a 
symlink/file (vs. directory) (see paste, below).

Running "loginctl user-status" in a session opened by ssh gets me:

$ loginctl user-status;
lembark (1024)
   Since: Mon 2020-10-26 09:45:43 CDT; 7s ago
   State: active
Sessions: *c3
  Linger: no
Unit: user-1024.slice
(ins)lembark@duke:~ $

logind seems to be running, just not for console sessins

Any suggestions appreciated.


emerge-info:
Xorg.0.log: 
strace loginctl:

-- 
Steven Lembark
Workhorse Computing
lemb...@wrkhors.com
+1 888 359 3508



Re: [gentoo-user] A How-to to keep Python on top of its game?

2020-10-26 Thread Andrew Lowe

Should have gone to the list, went to Dale directly

On 19/10/20 11:20 pm, Dale wrote:

Andrew Lowe wrote:

Hi all, I've just run emerge --pretend --depclean and it wants to
remove Python 3.6 - all good. But in turn it is leaving 2.7, 3.7,
3.8, 3.9.


[snip]


Given some more time, I think 3.6 may go away at some point in the
not so distant future.  There may even be a somewhat firm target date
for it.  I think either the date was on -dev or a link to it one.

May have to give it more time yet.

Dale





Apologies for not replying sooner. I had a sneaking suspicion this would 
be the case. Well, I'll just have to put up with it until "the day" when 
the higher ups get things sorts.


Thanks,
Andrew



[gentoo-user] Updating LibreOffice and EPYTHON

2020-10-26 Thread Andrew Lowe

Evening all,
	I'm in the middle of doing an "-NuD world" and my  Libreoffice build 
has failed right at the finish line. I get:



* ERROR: app-office/libreoffice-6.4.7.2::gentoo failed (install phase):
 *   No Python implementation set (EPYTHON is null).
 *
 * Call stack:
 * ebuild.sh, line  125:  Called src_install
 *   environment, line 5615:  Called python_optimize 
'/var/tmp/portage/app-office/libreoffice-6.4.7.2/image/usr/lib64/libreoffice/program'

 *   environment, line 5287:  Called die
 * The specific snippet of code:
 *   [[ -n ${EPYTHON} ]] || die 'No Python implementation set 
(EPYTHON is null).';

 *


I have no idea as to what this means - besides the obvious that EPYTHON 
isn't set. Libreoffice was about the 15th item to build in pmy update so 
I assume Portage is working correctly. There is no mention of EPYTHON in


emerge --info | grep EPYTHON

emerge --info lists:
PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8 -python3_9"
so I assume I have a version of Python set

I've had a look at the environment file that it references, line 5287 
and once again, makes no sense to me.


I've had a look on bugs.gentoo.org and only get one bug that lists the 
error string:


https://bugs.gentoo.org/721846

but once again, makes no sense.

	Any one else seen this error? Any one got a remedy? Thoughts greatly 
appreciated,


Andrew





Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated

2020-10-26 Thread Michael
On Monday, 26 October 2020 00:48:13 GMT the...@sys-concept.com wrote:
> On 10/25/2020 06:30 PM, Remco Rijnders wrote:
> > On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in
> > 
> > :
> >> The function in newer php "mysql_connect() or mysql_query()" were
> >> removed but I don't know starting from which version?
> >> 
> >> I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
> >> But I upgraded one of my system to php-5.6.40 and I'm getting an error:
> >> 
> >> PHP Fatal error:  Call to undefined function mysql_connect() in
> >> /var/www/catalog/admin/includes/functions/database.php on line 19
> > 
> > Hi Thelma,
> > 
> > I think mysql support was not removed between the two versions you
> > mention. The PHP website says "This extension was deprecated in PHP
> > 5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
> > point to do this. Could it be that your "use" flags for PHP changed?
> > Make sure to emerge PHP with the mysql use flag to build with mysql
> > database support.
> > 
> > I hope this helps.
> > 
> > Kind regards,
> > 
> > Remco
> 
> I'm running the osCommerce server and upgraded one of the box to apache 2.4
> The server is running OK but I can not access admin:
> 
> "apache 2.4 you don't have permission to access /index.php on this server"
> 
> I disable almost everthing in server/admin/.htaccess

I would think this error points to an apache configuration issue rather than 
php.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] ssh login, passing local user environment

2020-10-26 Thread J. Roeleveld
On Sunday, October 25, 2020 10:56:24 AM CET John Covici wrote:
> On Sun, 25 Oct 2020 05:04:38 -0400,
> 
> J. Roeleveld wrote:
> > On Saturday, October 24, 2020 11:05:45 PM CET the...@sys-concept.com 
wrote:
> > > If I login from the command "ifconfig" now works from command line at
> > > the terminal but if I login over "ssh", "ifconfig" is not working only
> > > "/bin/ifconfig"
> > > 
> > > I was thinking it is the option in sshd_config: PermitUserEnvironment
> > > but enabling it didn't help.
> > 
> > Which USE-flags did you use for ssh?
> > 
> > # eix net-misc/openssh
> > 
> > should provide this.
> > 
> > Also, do you have the following in your sshd_config:
> > 
> > " UsePAM yes "
> > 
> > This is normally used to configure the environment as well.
> 
> The simplest thing is to change your path environment variable in your
> .bashsrc so its always the same, no matter what the user is, that
> would solve your problem.

Which is also a maintenance nightmare if you end up with packages installed in 
different locations or when paths change due to new versions.

Never mind all the other environment variables that are defined in /etc/
profile.env.

--
Joost