Re: [gentoo-user] Multi-user login manager

2021-07-12 Thread Grant Taylor

On 7/12/21 2:21 PM, antlists wrote:
Two problems - I would like to run without X, but it seems that the 
greeters need X to run ...


I'm not familiar with the term "greeter", but I assume that you're 
referring to the display manager that functions as the GUI login screen.


Also I want to run a multi-user system. I know you can put multiple 
monitors on one graphics card, and that gives you a multi-head system, 
but I've got TWO graphics cards. I want to plug in two keyboards, two 
mice, and have two users sitting there.


I would naively assume ~> expect that this is possible.

I would expect that you would probably need two different graphics cards.

I'm guessing no more than one set of PS/2 keyboard & mouse and that the 
other (if not both) will be USB.


Configuration may be ornery, but I would assume ~> expect that this is 
possible to do.  After all, you're really talking about having the 
system function as two independent X11 servers, one for each set of 
keyboard, mouse, monitor.  This is imminently doable with external X11 
servers.  I see no reason other than ornery configuration that you 
shouldn't be able to do this.


I'm thinking old school X11.  My expectations may not translate to 
contemporary systems.  But I would be shocked if not flabbergasted if it 
was not possible to do what you want.


Word to the wise:  USB devices, especially multiple of the same type, 
can be annoying to deal with.  You may want to look at a udev (et al.) 
rule to create custom device names (likely based on device serial 
number) and use said custom device names in your configuration files.


From what I can make out, this isn't possible with sddm. Lightdm looks 
like it might be possible, but there isn't a man page, and I haven't 
installed it so I can't find out what's what.


I have no idea about configuring Display Managers (XDM, sddm, Lightdm, 
etc.) to do this.


Or can I fire up two instances of greetd? One on eg vt7 and the other on 
vt8? If so, how do I configure vt7 and vt8 to be my two different 
screen/keyboard/mouse combos?


My expectation is that the various display managers run in relation / 
within the context of a given X server.



Lightdm also says it will do vnc, but again, the lack of documentation...


Which VNC?  x11vnc or Xvnc?

Unless you're wanting x11vnc to share a physical console, I doubt that's 
what you want.  As Xvnc will be a purely virtual X11 server.


I know I'm asking a lot, but I tend to find documentation makes sense 
only after you already know what it's saying ... :-) I'm hoping for a 
"cookbook" style approach, but I don't expect much of that because I 
know what I'm doing isn't very common ...


Ya.  I find that man pages and O'Reilly books are good /reference/ 
material but not good /introduction/ material.




--
Grant. . . .
unix || die



Re: [gentoo-user] Multi-user login manager

2021-07-12 Thread Jigme Datse
On Mon, 12 Jul 2021 21:21:14 +0100
antlists  wrote:

> Two problems - I would like to run without X, but it seems that the 
> greeters need X to run ...

The greeters do, but a simple login prompt doesn't...  But from what I
can tell, you can't run multiseat (which I think is the term for what
you're wanting to do) without running X, Wayland, or Mir.  The virtual
terminals while you can switch between them, assume a single "user"
attached to it.

> Also I want to run a multi-user system. I know you can put multiple 
> monitors on one graphics card, and that gives you a multi-head
> system, but I've got TWO graphics cards. I want to plug in two
> keyboards, two mice, and have two users sitting there.

This sounds like what you are describing is what this Ubuntu page[1] is
calling multiseat.  This appears to require having some Windowing
system though it may not be true any more.  The Gentoo Multiseat
documentation[2] indicates it may not be required.  

>  From what I can make out, this isn't possible with sddm. Lightdm
> looks like it might be possible, but there isn't a man page, and I
> haven't installed it so I can't find out what's what.

The Gentoo page indicates that LightDM and SDDM both support multiseat
with either elogind or systemd used.  I'm not sure what login manager
you're using, as that may be an issue.  Consolekit is largely
unsupported, 

> Or can I fire up two instances of greetd? One on eg vt7 and the other
> on vt8? If so, how do I configure vt7 and vt8 to be my two different 
> screen/keyboard/mouse combos?

This appears to "not work" as the VTs assume a single seat.  I honestly
thought that something like this was possible.  

> Lightdm also says it will do vnc, but again, the lack of
> documentation...

I have little idea about this.  

> And lastly, I remember something about waypipe. How easy is it to
> link Windows and linux with waypipe?

I'm not sure what options are available for running waypipe on Windows.
My search doesn't show anything obvious.  That probably would be the
question to answer about that.  From what I can tell about Waypipe, is
if it's running, it should be easy to connect between machines
relatively easily, though it's still another layer to keep in mind.  

> I know I'm asking a lot, but I tend to find documentation makes sense 
> only after you already know what it's saying ... :-) I'm hoping for a 
> "cookbook" style approach, but I don't expect much of that because I 
> know what I'm doing isn't very common ...

The best I can tell about anything "cookbook" is that a big part of why
that doesn't really exist is even with online stuff, by the time
someone has managed to set stuff up with the current state of things,
and be able to write out the documentation, that likely won't work with
what someone new might be facing.  

I hope my looking into it (mainly because I actually want to know how
difficult it would be to setup, if that's what I was wanting to do),
can be helpful to you.

[1] https://wiki.ubuntu.com/Multiseat
[2] https://wiki.gentoo.org/wiki/Multiseat



[gentoo-user] Multi-user login manager

2021-07-12 Thread antlists
Two problems - I would like to run without X, but it seems that the 
greeters need X to run ...


Also I want to run a multi-user system. I know you can put multiple 
monitors on one graphics card, and that gives you a multi-head system, 
but I've got TWO graphics cards. I want to plug in two keyboards, two 
mice, and have two users sitting there.


From what I can make out, this isn't possible with sddm. Lightdm looks 
like it might be possible, but there isn't a man page, and I haven't 
installed it so I can't find out what's what.


Or can I fire up two instances of greetd? One on eg vt7 and the other on 
vt8? If so, how do I configure vt7 and vt8 to be my two different 
screen/keyboard/mouse combos?


Lightdm also says it will do vnc, but again, the lack of documentation...

And lastly, I remember something about waypipe. How easy is it to link 
Windows and linux with waypipe?


I know I'm asking a lot, but I tend to find documentation makes sense 
only after you already know what it's saying ... :-) I'm hoping for a 
"cookbook" style approach, but I don't expect much of that because I 
know what I'm doing isn't very common ...


Cheers,
Wol



[gentoo-user] nsapass v5.0.0 cooked

2021-07-12 Thread caveman رَجُلُ الْكَهْفِ 穴居人
fyi:  new version cooked:

https://github.com/Al-Caveman/nsapass

synopsis:  best passwords manager.

yw,
cm.



Re: [gentoo-user] cryptsetup close and device in use when it is not

2021-07-12 Thread Ramon Fischer

OK, if it could be "udev", you might want to try to check the following:

   $ grep -rF "" /etc/udev/rules.d/
   $ grep -rF "" /lib/udev/rules.d/
   $ grep -rF "" /etc

You could also try to search for the partition device, maybe there will 
be some interesting configuration files.


If you are using "systemd", you might want to check every service unit 
file as well:


   $ systemctl

Recently, I had a similar issue with "cryptsetup" on Raspbian, where the 
"/etc/crypttab" was faulty, which may be applicable here. It had the 
following entry:


   #  #   [...]
   
   

Therefore, the systemd service unit 
"systemd-cryptsetup@dev-disk-by\x2duuid-# # 
  [...]" - if I remember correctly - failed.
It seems, that "systemd-cryptsetup-generator" only searches for matching 
UUIDs in "/etc/crypttab", even, if they are commented and creates 
service units for each match in "/run/systemd/generator/".
I remember, that I had issues to access the hard drive. Nevertheless, I 
was able to mount it normally, due to the other correct entry(?).


By removing the accidentally pasted UUID from "/etc/crypttab" and 
rebooting, I was able to use the hard drive without issues again.


Maybe this is something, where you could poke around? :)

-Ramon

On 12/07/2021 10:31, Dale wrote:

Ramon Fischer wrote:

Interesting.

I have some other ideas, but this is really grasping at straws. Create
a backup of the backup drive before doing any tests, since you have to
move it a lot for this:

    1. Connect the hard drive to a different eSATA port
    2. Try another eSATA cable
    3. Try to mount the hard drive on different devices
    4. Try different hard drive cases with different connection types
    (Maybe you have a better enclosure with USB or even FireWire, which
    does not damage your drive?)
    5. Connect it internally via SATA and try to mount it
    6. Mirror the hard drive to a second hard drive and try to mount the
    second one

I think, this would entirely cover Layer 1 of the OSI Layer Model[1]. :)

-Ramon

[1] https://en.wikipedia.org/wiki/OSI_model



That's a lot of effort.  It's annoying it doesn't close like it should
but doing all that would be a tedious task as well.  It would eliminate
a lot of potential causes tho.  Thing is, I think it's a software issue
not hardware.

To add to this, the 6TB drive just did the same thing.  I had been using
UUID to mount it since it was working.  After getting the same problem
as the other drive, I changed it.  It took some effort to get it to
close but restarting lvm and friends did eventually get it to close.  I
then changed it to mount by label like I been doing with the 8TB drive.

I think by just continuing to note what it is doing, eventually the
problem will show itself.  Personally, I sort of wonder if it is a udev
problem or lvm.  Thing is, a lot of this software works together so
closely, it's hard to know where one stops and the other starts.

I finished my backups to the 8TB drive and it worked start to finish
with no errors at all.  I guess we'll see what happens next week with
the 6TB drive.  See if it starts to work again with no problem or still
has issues of some kind.  So far, mounting by label seems to have worked
well for the 8TB drive.

Will update again as things move along.

Dale

:-)  :-)


--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF




OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] postfix: /etc/postfix/aliases or /etc/mail/aliases ?

2021-07-12 Thread Adam Carter
> Two options:
> 1/ use dafaults, i.e. /etc/mail/aliases
> 2/ use a custom location but then change postfix.service to give r/w
> access to the new aliases.db location
>
> I'd go with option #1 if you do not have a strong preference either way.
>
>
Agreed - will go with #1 now. Thanks for your comment about postfix-install

Cheers!


Re: [gentoo-user] cryptsetup close and device in use when it is not

2021-07-12 Thread Dale
Ramon Fischer wrote:
> Interesting.
>
> I have some other ideas, but this is really grasping at straws. Create
> a backup of the backup drive before doing any tests, since you have to
> move it a lot for this:
>
>    1. Connect the hard drive to a different eSATA port
>    2. Try another eSATA cable
>    3. Try to mount the hard drive on different devices
>    4. Try different hard drive cases with different connection types
>    (Maybe you have a better enclosure with USB or even FireWire, which
>    does not damage your drive?)
>    5. Connect it internally via SATA and try to mount it
>    6. Mirror the hard drive to a second hard drive and try to mount the
>    second one
>
> I think, this would entirely cover Layer 1 of the OSI Layer Model[1]. :)
>
> -Ramon
>
> [1] https://en.wikipedia.org/wiki/OSI_model
>


That's a lot of effort.  It's annoying it doesn't close like it should
but doing all that would be a tedious task as well.  It would eliminate
a lot of potential causes tho.  Thing is, I think it's a software issue
not hardware. 

To add to this, the 6TB drive just did the same thing.  I had been using
UUID to mount it since it was working.  After getting the same problem
as the other drive, I changed it.  It took some effort to get it to
close but restarting lvm and friends did eventually get it to close.  I
then changed it to mount by label like I been doing with the 8TB drive. 

I think by just continuing to note what it is doing, eventually the
problem will show itself.  Personally, I sort of wonder if it is a udev
problem or lvm.  Thing is, a lot of this software works together so
closely, it's hard to know where one stops and the other starts. 

I finished my backups to the 8TB drive and it worked start to finish
with no errors at all.  I guess we'll see what happens next week with
the 6TB drive.  See if it starts to work again with no problem or still
has issues of some kind.  So far, mounting by label seems to have worked
well for the 8TB drive. 

Will update again as things move along.

Dale

:-)  :-) 



Re: [gentoo-user] Problems with LyX and xetex-2021

2021-07-12 Thread Stefano Crocco
On domenica 11 luglio 2021 15:01:07 CEST Nils Freydank wrote:
> Hi Stefano,
> 
> I couldn't reproduce your error with xelatex at all. I took your example/MWE
> and just executed "xelatex test.tex" and it generated me a single page PDF.
> 
> A quick and dirty idea: Move ~/.texlive (e.g. to ~/.texlive-bak) and let
> texlive regenerate files there.
> 
> In my worldfile I have app-text/texlive, dev-tex/biber and dev-tex/latexmk,
> everything else are just deps.
> 
> Interestingly it works even with USE="-xetex" for texlive which in turn has
> only the following USE flags enabled:
> "X extra graphics luatex metapost music png pstricks science truetype"
> 
> Hope that helps you,
> Nils

Thanks for the answer. I tried removing the .texlive directory, but nothing 
changed. However, on my laptop it worked correctly even with texlive-2021, 
which is strange because its configuration is very similar to that of my 
desktop PC (where it doesn't work). The list of texlive-related packages is 
the same in both machines, so I can't really understand what's going on.

However, in the meanwhile, I found a workaround for the issue with LyX: 
enabling the "Use non-TeX fonts (via XeTeX/LuaTeX)" document setting makes it 
work even on the desktop PC (when I wrote the original mail, I had masked 
texlive-2021 on my laptop to have a system where LyX worked correctly; after 
discovering this workaround, I felt safe in upgrading it; I didn't think about 
testing this problem there).

I had reported this issue on the LyX bug tracker and they answered me this 
issue would be fixed in a future release.

Stefano





Re: [gentoo-user] postfix: /etc/postfix/aliases or /etc/mail/aliases ?

2021-07-12 Thread Eray Aslan
On Mon, Jul 12, 2021 at 01:21:14PM +1000, Adam Carter wrote:
> The location is currently configured in main.cf;
> # postconf alias_maps
> alias_maps = hash:/etc/postifix/aliases

That's a non-default value.  /etc/mail/aliases is the gentoo default.
Changing the default is fine but you need to let postfix create the db
file as well if you want to use /etc/postfix as your aliases location.

> And looks like the installer puts the original alias file there too, so I
> assume my config is per the default config;
> # qlist postfix | grep aliases
> /etc/postfix/aliases

yes postfix-install command places aliases file - along with a few
others - into standart configuration directory.  It is somewhat of an
hassle to remove them as other commands expect at least some of them to
be present.

> But this;
> # grep aliases /lib/systemd/system/postfix.service
> ExecStartPre=-/usr/bin/newaliases
> ReadWritePaths=-/etc/mail/aliases.db
> 
> Suggests that /etc/mail is the correct location, so i'm wondering if i
> missed an update to postfix.service. Can a postfix user please check their
> ReadWritePaths to see if it's /etc/mail/aliases.db or
> /etc/postfix/aliases.db ? Cheers.

Two options:
1/ use dafaults, i.e. /etc/mail/aliases
2/ use a custom location but then change postfix.service to give r/w
access to the new aliases.db location

I'd go with option #1 if you do not have a strong preference either way.

-- 
Eray