PINE64
User login change - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: User login change (/showthread.php?tid=16404)

Pages: 1 2


User login change - usagi - 03-30-2022

Hey, Is it possible to logout out as mobian and login as a different user? For example on boot?
I like create a user that has controll of ex. keepassxc but one other user can access it. Similiar to what
https://wiki.gentoo.org/wiki/Simple_sandbox does.


RE: User login change - wibble - 03-31-2022

I think phosh.service acts as the display manager and does the autologin, so I think you'd need to disable phosh.service and install an alternative display manager like lightdm to let you pick the user to use.


RE: User login change - usagi - 04-01-2022

Been trying using lightdm but cant get to the login screen to change user. After enabling lightdm and reboot only get black screen.


RE: User login change - wibble - 04-02-2022

Following https://wiki.debian.org/DisplayManager I guess? I think the logs will be under /var/lib/lightdm/ and might give some hint as to what's failing.


RE: User login change - onubatux - 04-02-2022

I have created the user and installed lightdm, without problems. But it is not functional because you need a keyboard to be able to write the username and password.

does anyone know how to invoke the mobian on-screen keyboard for lightdm? with that it would work.

Sorry but I don't speak English, I use a translator.


RE: User login change - fxc - 04-02-2022

(04-02-2022, 11:13 AM)onubatux Wrote: I have created the user and installed lightdm, without problems. But it is not functional because you need a keyboard to be able to write the username and password.

does anyone know how to invoke the mobian on-screen keyboard for lightdm? with that it would work.

Sorry but I don't speak English, I use a translator.

You need a mobile-friendly greeter, such as raatty's lightdm-mobile-greeter.


RE: User login change - usagi - 04-02-2022

(04-02-2022, 11:13 AM)onubatux Wrote: I have created the user and installed lightdm, without problems. But it is not functional because you need a keyboard to be able to write the username and password.

does anyone know how to invoke the mobian on-screen keyboard for lightdm? with that it would work.

Sorry but I don't speak English, I use a translator.

How did you install it and configured it? When using the https://wiki.debian.org/LightDM instructions when rebooting I only get a blank screen.


RE: User login change - onubatux - 04-02-2022

(04-02-2022, 02:28 PM)usagi Wrote:
(04-02-2022, 11:13 AM)onubatux Wrote: I have created the user and installed lightdm, without problems. But it is not functional because you need a keyboard to be able to write the username and password.

does anyone know how to invoke the mobian on-screen keyboard for lightdm? with that it would work.

Sorry but I don't speak English, I use a translator.

How did you install it and configured it? When using the https://wiki.debian.org/LightDM instructions when rebooting I only get a blank screen.

use the command: sudo apt install lightdm It installed without problems, I restarted the phone and started with lightdm the same one from pc, but that is not functional you need one that invokes the on-screen keyboard


RE: User login change - wibble - 04-03-2022

It looks like lightdm-mobile-greeter isn't packaged for mobian yet. Someone did manage to build it though:
https://forum.pine64.org/showthread.php?tid=13350&pid=91271#pid91271

If you aren't wedded to mobian you could use PmOS instead - they have it packaged.
https://wiki.postmarketos.org/wiki/Configure_postmarketOS_for_multiple_UIs_or_users


RE: User login change - onubatux - 04-04-2022

I got it using gdm3
First you register a new user from the console with the command: (change diego for your name)

sudo adduser diego

Install gdm3 this is the process
first update the repositories using:

sudo apt update

then we install gdm3

sudo apt install gdm3

It is not necessary to restart, and do not despair that it takes a little while for the gdm3 screen to appear, but it appears as you can see in the images above.

when you get the gdm3 screen you will see the two users:
the touch screen works normally. You select the new user (if not, it's not funny)

important in bottom gear select phosh environment

and to make the keyboard appear you drag from bottom to top.
and enjoy the new user.

=========================

I have found a small bug in the use of gdm3. When you start the phone, you barely have time to see the gdm3 screen.

The solution I have found right now is the following:
You enter with the default user, the first on your list. In my case it is mobian as you can see in the first photo that I have passed.

When you are with that user you go to a command console and use the following command:

sudo systemctl restart gdm3

and it is fixed until the next reboot of the phone.

You can exit and change users as many times as you want, gdm3 will only fail when starting the phone. but we already have a solution.

Enjoy whoever wants to use it.