~mil/sxmo-docs

7b0cf86a860d30a0fedbeb4b24250ac5e4fa30ed — Maarten van Gompel 6 months ago a46a8c7
rephrased the alternative route for handling the dual user issue: seperate section
1 files changed, 15 insertions(+), 4 deletions(-)

M INSTALLGUIDE.md
M INSTALLGUIDE.md => INSTALLGUIDE.md +15 -4
@@ 23,18 23,29 @@ selected UI.
   (**Make sure to check if this is really your SD card device using ``lsblk``!**)
4. Pop the SD card into your Pinephone and see the [Userguide](https://git.sr.ht/~mil/sxmo-docs/tree/master/USERGUIDE.md)
5. Please note, for general use, login as `user` with the lockscreen password set up during the installer. (If the installer wasn't used, the default password is `147147`).
   1. **The ssh user for the installer is only intended for login over ssh, not for logging into a graphical session**. To enable sxmo's ssh features, you can either set up ssh for 'user', or make the ssh user the default user.
   1. **The ssh user for the installer is only intended for login over ssh, not for logging into a graphical session**. To enable sxmo's ssh features, you can set up ssh for ``user``.
   2. login with the ssh user setup during the installer
   3. [enable ssh for graphical user (called user)](https://wiki.postmarketos.org/wiki/SSH#Enabling_SSH_if_it_was_disabled_in_the_installer) **OR** add the ssh user the the necessary groups using: ``sudo usermod -G audio,input,video,netdev,plugdev -a $SSH_USERNAME`` (logout and login again after this step if you opted for the latter).
   3. [enable ssh for graphical user (called user)](https://wiki.postmarketos.org/wiki/SSH#Enabling_SSH_if_it_was_disabled_in_the_installer)
   4. [install ssh key and disable ssh login with password](https://wiki.postmarketos.org/wiki/SSH#Replace_password_with_SSH_key)
   5. delete either the dedicated ssh user **OR** the default ``user`` (depending on which option you chose at 2) as it doesn't have a purpose anymore
   5. delete the dedicated ssh user, as it doesn't have a purpose anymore.
6. Also note, the first time you boot up your SD card with Sxmo; pmOS will resize
   the root filesystem partition to the full size of the SD card. The time this takes
   is proportional to the size of the SD card, so if you use a large card expect
is proportional to the size of the SD card, so if you use a large card expect
   this to take a few minutes - this is a one-time process and subsequent boots
   will be faster.
7. After booting, make sure to check the User Guide for [instructions on how to update](https://git.sr.ht/~mil/sxmo-docs/tree/master/USERGUIDE.md#strongupdating-and-changelogstrong)

**Alternative to step 5: Setting the ssh user from the installer as the main user instead**

This is an alternative to step 5 in the above installation procedure. Instead of setting using ``user``, you can use the
user you configured for ssh for graphical login. Although this is not the recommended way by postmarketOS, it may be
preferred by some users:

   1. Login with the ssh user setup during the installer
   2. Add the ssh user to the necessary groups using: ``sudo usermod -G audio,input,video,netdev,plugdev -a $SSH_USERNAME`` (logout and login again after this step if you opted for the latter).
   3. [Install ssh key and disable ssh login with password](https://wiki.postmarketos.org/wiki/SSH#Replace_password_with_SSH_key)
   4. Delete either the default ``user`` as it doesn't have a purpose anymore.

## **Alternative: Use a New or existing pmOS install**

If you'd like to customize your