JP2026 howto remove LUKS, defaultuser=>nemo

i’ve been editing the flashable images for so long that i’ve forgotten the taste of food, sam. here is how to do it in recovery mode without flashable images. (works on JP2026 and 10III and probably every official sfos image 4.6+ on every phone). note that both changes only work before first boot.

i make three edits, remove luks marker, change defaultuser=>nemo, and make root lvm 10GiB. that last one i don’t know how to do in recovery mode.

dont do this, btw, it will brick your phone and there are no flashable images.

  1. factory reset phone without rebooting
  2. enter recovery mode (volup + power for boot menu, voldn to select)
  3. telnet (rndis_host, dhcpcd, telnet 10.42.66.66)
  4. start sshd from recovery menu (ignore the warranty voiding message. are you some sort of chicken? seriously, this is a little upsetting jolly boys)
  5. ssh root@10.42.66.66
  6. delete LUKS marker file:
    rm /rootfs/var/lib/sailfish-device-encryption/encrypt-home
  7. edit start-autologin
    vi /rootfs/usr/lib/startup/start-autologin
  8. change defaultuser => nemo in exactly three places
    once here: groupadd ~~~~~~~ defaultuser
    and twice here: useradd -g defaultuser ~~~~~~ defaultuser
5 Likes

Probably should add some disclaimers that copy-pasting most of commands/scripts found in the forum will fail as they will default to ‘defaultuser’ (I feel like nemo ship has sailed)

i will once again take this time to deride jolla for using defaultuser instead of sailor or anything that:

  1. is fewer than 8 chars so that, for example, the builtin ls on the phone doesn’t truncate it. not to mention our poor fingies. who decides to increase something so fundemental by 300%?
  2. isn’t CATEGORICALLY CONFUSING. the default user is defaultuser. but who’s on first?
  3. isn’t so depressingly unaesthetic. defaultuser is hard to read, boring, and honestly the worst choice
  4. is even slightly thematic. nemo was so fun, and i get that we had to leave it, but why not finn? reef? fish? kai? wade? diver?

imagine opening up a terminal and typing: ssh dakkar@nautiphone. you stole that from us.

7 Likes

nemo’s boat has not, nor will it ever, “sail”. the nautilus is a submarine, and you will pry this little piece of joy out of my cold dead hands if you want it so badly

edit: on a side note, anyone who both wants to set the user to nemo, AND wasn’t scared off by ‘this will brick your phone’, has probably been around here long enough to not need that piece of advice

3 Likes

Yeah I get you, but the audience changed, instead of nostalgic nokia refugees you now get android-exes who will brick native sfos gesture flow (no quick event access) just to bring an android gesture used by a couple of apps (and they’re all super happy to apply all kinds of patches, until they brick their phone first time and become more cautious hopefully), some will definitely follow and then get confused why a script that has /home/defaultuser/ hardcoded doesn’t seem to work

Btw is OP finished? Don’t see anywhere the 10Gb part

i am deeply, profoundly indifferent to the plight of android script kiddies being mildly confused about the drivel they are blindly pasting

yes OP is finished. see: that last one i don’t know how to do in recovery mode. :frowning:

1 Like

This old guide targeted for Sony Xperia’s can’t be used as a starting point for the Jolla Phone?

https://gitlab.com/Olf0/sailfishX/-/blob/master/README.md?ref_type=heads#33-increasing-the-root-lvm-volume-size

2 Likes

it would probably Just Work. i meant literally ‘i dont know’, not that ‘it is not known’.
i wasnt brave enough to try figuring it out without a flashable image :smiley:

I think anyone who wants to change the username should be technically competent enough to understand the implications in this regard.

I would like to be able to change the username, as is common on Linux desktops. Maybe allowing users to set it during the initial setup would be enough for me. It’s probably, and understandably, not a high priority for Jolla, but it would be a nice finishing touch in a future update—who knows?

I’m sure a lot of people will want to change the name to John Doe (or john doe in some weird unicode chars), whether you can reliably test nothing breaks within the system is another thing (also system username vs what is displayed somewhere else in GUI is also not really tied, so maybe for the ‘wants’ a visual acknowledgement is enough), still a warning when posting such instructions would be nice, might save us all a few threads
(then again there is: don’t do this, it will brick your phone; so I guess we’re golden)

2 Likes

Oh, this is an interesting thread :popcorn:

Took me a while to parse this. You mean the user/group columns in a ls -l. Listings themselves are not truncated.

I agree though, defaultuser is not a good choice.

I let many things go for personal sanity maintenance, but y’all are on point: lameness of defaultuser vs original top gun marketing asset nemo is tough to swallow, even years after.

7 Likes

Not swallowing, changing as first action after enabling developer/terminal it is!

hmm? why change it after logging in? you’d have to move home, edit /etc/[passwd|group|shadow], and update all absolute references to /home/defaultuser in config files etc. that’s WAY more dangerous than just editing a single text file. my warning was to deter noobs from doing something that they dont understand to accomplish something they dont need; if you’re comfortable doing stuff like this anyway, what i propose is almost certainly the easiest+safest way to do it. plus, you get to do it from a laptop instead of poking at a tiny screen.

also i dont think you can remove LUKS after setting it up. at least, i couldnt get it to boot the time i tried it on my 10 III.

EDIT: i still stand by that this is unnecessary to do at all, and until we get images and reliable and repeatable fastboot, it’s not worth the risk. i just mean that if youre gonna risk it anyway, my proposal is safer, relatively speaking.

1 Like

And if we want to change the username but keep encryption, is it possible with your method?
From what I see, step 8 takes care of renaming only so I would only have to ignore step 6, is it right ?

1 Like

yep! x____________________x

I had some issues with phone not taking the recovery mode but it finally came through and I can confirm.

Thanks for the tutorial.

Side-note: For the non-vi users, the fast-track is to just type :%s/defaultuser/nemo/g[Enter]ZZ to replace all and save.

1 Like