How to switch from defaultuser to nemo

I did the following on a clean install yesterday and it seems to work but don’t blame me if it doesn’t work for you.

  1. Rename homedir and add symlink (just in case)
devel-su
cd /home
mv defaultuser nemo
ln -s nemo defaultuser
  1. Search for all files in /etc containing defaultuser
grep -sIR defaultuser /etc/
  1. For each file found replace defaultuser with nemo
sed -i 's/defaultuser/nemo/g' <file_name_here>

If a file is read only then set write permissions first (and restore them afterwards)

chmod u+w <file_name_here>
sed -i 's/defaultuser/nemo/g' <file_name_here>
chmod u-w <file_name_here>
  1. Reboot phone
reboot
5 Likes

Has anyone tried this on the C2 (SFOS 5.0.0.21), yet?

Yes :slight_smile:

So far no problems!

1 Like

I found that I needed to edit /etc/connman/connman-vpn.conf also and rename /var/spool/mail/defaultuser (though that should be harmless).

This is collected from my shell history:

chmod u+w /etc/shadow
chmod u+w  /etc/gshadow
cd /home
mv defaultuser nemo
ln -s nemo defaultuser
vipw
vigr
vim /etc/gshadow
vim /etc/shadow
vim /etc/subgid /etc/subuid
vim /etc/connman/connman-vpn.conf
chmod u-w /etc/shadow
chmod u-w /etc/gshadow
mv /var/spool/mail/defaultuser /var/spool/mail/nemo
cd /home/.appsupport/instance/
mv defaultuser nemo ### MAKE SURE APPSUPPORT IS OFF BEFORE THIS!

grep defaultuser /etc/* -r
find /var/ -name "*defaultuser*"
find /usr/ -name "*defaultuser*"
find /home/.??*  -name "*defaultuser*"

EDIT: There may be some local user settings storing the old home path. If you kept the symlink in home, you won’t notice.
After I removed it I found the following:

  1. An installation of Whisperfish that was done before changing to nemo stored the path /home/defaultuser in some files under ~/.config. These needed to be corrected as well.
    YMMV.

  2. Launcher Folder Icons:
    Located at ~/.config/lipstick, launcher folder config files contain defaultuser references if created before the switch. The app icon grouping works, but the icon shapes revert to default.

  3. several sqlite databases store paths:

  • .local/share/system/privileged/Ambienced/ambienced.sqlite
  • .local/nemo-transferengine/transferdb.sqlite
7 Likes